diff options
Diffstat (limited to 'src/utils.rs')
-rw-r--r-- | src/utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.rs b/src/utils.rs index 26facc4..24df0ce 100644 --- a/src/utils.rs +++ b/src/utils.rs | |||
@@ -47,7 +47,7 @@ pub fn parse_filter(content: &str) -> Result<Filter, Error> { | |||
47 | // TODO: lifetime issue when "throwing" parse error | 47 | // TODO: lifetime issue when "throwing" parse error |
48 | let filter = EqualizerApoParser::new() | 48 | let filter = EqualizerApoParser::new() |
49 | .parse(&content) | 49 | .parse(&content) |
50 | .map_err(|e| convert_parse_error(EqualizerConfFormat::EqualizerAPO, e))?; | 50 | .map_err(|e| convert_parse_error(EqualizerConfFormat::EqualizerAPO, &e))?; |
51 | trace!("Parsed filter: {:?}", filter); | 51 | trace!("Parsed filter: {:?}", filter); |
52 | 52 | ||
53 | Ok(filter) | 53 | Ok(filter) |
@@ -55,7 +55,7 @@ pub fn parse_filter(content: &str) -> Result<Filter, Error> { | |||
55 | 55 | ||
56 | fn convert_parse_error<L, T, E>( | 56 | fn convert_parse_error<L, T, E>( |
57 | format: EqualizerConfFormat, | 57 | format: EqualizerConfFormat, |
58 | error: lalrpop_util::ParseError<L, T, E>, | 58 | error: &lalrpop_util::ParseError<L, T, E>, |
59 | ) -> ParseError | 59 | ) -> ParseError |
60 | where | 60 | where |
61 | L: fmt::Display, | 61 | L: fmt::Display, |