diff options
author | Federico Mena Quintero <federico@gnome.org> | 2023-02-08 18:34:58 -0600 |
---|---|---|
committer | Federico Mena Quintero <federico@gnome.org> | 2023-02-08 18:34:58 -0600 |
commit | f6d7ab0c71777080405dd0b79952424c748f681e (patch) | |
tree | ae50622b472abb1ab45637a8bb2e084991a98c76 | |
parent | bae7fd10425225e868f6ccaa73d479078703ecfb (diff) | |
download | librsvg-f6d7ab0c71777080405dd0b79952424c748f681e.tar.gz |
clippy: remove unnecessary lifetimesbilelmoussaoui/update
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/792>
-rw-r--r-- | src/filter_func.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter_func.rs b/src/filter_func.rs index b01fe2f4..3639503e 100644 --- a/src/filter_func.rs +++ b/src/filter_func.rs @@ -133,7 +133,7 @@ pub struct Sepia { /// Reads an optional number or percentage from the parser. /// Negative numbers are not allowed. -fn parse_num_or_percentage<'i>(parser: &mut Parser<'i, '_>) -> Option<f64> { +fn parse_num_or_percentage(parser: &mut Parser<'_, '_>) -> Option<f64> { match parser.try_parse(|p| NumberOrPercentage::parse(p)) { Ok(NumberOrPercentage { value }) if value < 0.0 => None, Ok(NumberOrPercentage { value }) => Some(value), @@ -143,7 +143,7 @@ fn parse_num_or_percentage<'i>(parser: &mut Parser<'i, '_>) -> Option<f64> { /// Reads an optional number or percentage from the parser, returning a value clamped to [0, 1]. /// Negative numbers are not allowed. -fn parse_num_or_percentage_clamped<'i>(parser: &mut Parser<'i, '_>) -> Option<f64> { +fn parse_num_or_percentage_clamped(parser: &mut Parser<'_, '_>) -> Option<f64> { parse_num_or_percentage(parser).map(|value| value.clamp(0.0, 1.0)) } |