diff --git a/src/angle.rs b/src/angle.rs index 66ee14d..baab9b5 100644 --- a/src/angle.rs +++ b/src/angle.rs @@ -58,7 +58,7 @@ impl std::str::FromStr for Angle { } } -impl<'a> Stream<'a> { +impl Stream<'_> { /// Parses angle from the stream. /// /// diff --git a/src/color.rs b/src/color.rs index 1d87280..122ae5f 100644 --- a/src/color.rs +++ b/src/color.rs @@ -111,7 +111,7 @@ impl std::str::FromStr for Color { } } -impl<'a> Stream<'a> { +impl Stream<'_> { /// Tries to parse a color, but doesn't advance on error. pub fn try_parse_color(&mut self) -> Option { let mut s = *self; diff --git a/src/directional_position.rs b/src/directional_position.rs index 2e3f276..8f9ec80 100644 --- a/src/directional_position.rs +++ b/src/directional_position.rs @@ -72,7 +72,7 @@ impl std::str::FromStr for DirectionalPosition { } } -impl<'a> Stream<'a> { +impl Stream<'_> { /// Parses a directional position [`left`, `center`, `right`, `bottom`, `top`] from the stream. pub fn parse_directional_position(&mut self) -> Result { self.skip_spaces(); diff --git a/src/font.rs b/src/font.rs index 8ec9691..fe44233 100644 --- a/src/font.rs +++ b/src/font.rs @@ -49,7 +49,7 @@ impl Display for FontFamily { } } -impl<'a> Stream<'a> { +impl Stream<'_> { pub fn parse_font_families(&mut self) -> Result, Error> { let mut families = vec![]; diff --git a/src/length.rs b/src/length.rs index cc43b33..c67a049 100644 --- a/src/length.rs +++ b/src/length.rs @@ -80,7 +80,7 @@ impl std::str::FromStr for Length { } } -impl<'a> Stream<'a> { +impl Stream<'_> { /// Parses length from the stream. /// /// @@ -166,7 +166,7 @@ impl<'a> From<&'a str> for LengthListParser<'a> { } } -impl<'a> Iterator for LengthListParser<'a> { +impl Iterator for LengthListParser<'_> { type Item = Result; fn next(&mut self) -> Option { diff --git a/src/number.rs b/src/number.rs index 703e599..fad023b 100644 --- a/src/number.rs +++ b/src/number.rs @@ -24,7 +24,7 @@ impl std::str::FromStr for Number { } } -impl<'a> Stream<'a> { +impl Stream<'_> { /// Parses number from the stream. /// /// This method will detect a number length and then @@ -145,7 +145,7 @@ impl<'a> From<&'a str> for NumberListParser<'a> { } } -impl<'a> Iterator for NumberListParser<'a> { +impl Iterator for NumberListParser<'_> { type Item = Result; fn next(&mut self) -> Option { diff --git a/src/path.rs b/src/path.rs index 64bd09c..7339656 100644 --- a/src/path.rs +++ b/src/path.rs @@ -121,7 +121,7 @@ impl<'a> From<&'a str> for PathParser<'a> { } } -impl<'a> Iterator for PathParser<'a> { +impl Iterator for PathParser<'_> { type Item = Result; #[inline] @@ -661,7 +661,7 @@ impl<'a> From<&'a str> for SimplifyingPathParser<'a> { } } -impl<'a> Iterator for SimplifyingPathParser<'a> { +impl Iterator for SimplifyingPathParser<'_> { type Item = Result; fn next(&mut self) -> Option { diff --git a/src/points.rs b/src/points.rs index 3b49a64..f09c67e 100644 --- a/src/points.rs +++ b/src/points.rs @@ -40,7 +40,7 @@ impl<'a> From<&'a str> for PointsParser<'a> { } } -impl<'a> Iterator for PointsParser<'a> { +impl Iterator for PointsParser<'_> { type Item = (f64, f64); fn next(&mut self) -> Option { diff --git a/src/transform.rs b/src/transform.rs index 2cc34f5..f4ba744 100644 --- a/src/transform.rs +++ b/src/transform.rs @@ -107,7 +107,7 @@ impl<'a> From<&'a str> for TransformListParser<'a> { } } -impl<'a> Iterator for TransformListParser<'a> { +impl Iterator for TransformListParser<'_> { type Item = Result; fn next(&mut self) -> Option { @@ -137,7 +137,7 @@ impl<'a> Iterator for TransformListParser<'a> { } } -impl<'a> TransformListParser<'a> { +impl TransformListParser<'_> { fn parse_next(&mut self) -> Result { let s = &mut self.stream;