From 4dd54a17c4a1b70d2cbf9891c2122994fcec71af Mon Sep 17 00:00:00 2001 From: Cyril Plisko Date: Tue, 4 Mar 2025 20:04:08 +0200 Subject: clippy::multiple_bound_locations (#103) * clippy::multiple_bound_locations * A few more clippy fixes. --------- Co-authored-by: Sam Scott --- src/de/parse.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/de/parse.rs') diff --git a/src/de/parse.rs b/src/de/parse.rs index a76f2c5..4f96fb9 100644 --- a/src/de/parse.rs +++ b/src/de/parse.rs @@ -184,7 +184,7 @@ impl<'a> Iterator for Parser<'a> { } } -impl<'a> Parser<'a> { +impl Parser<'_> { #[inline] fn peek(&mut self) -> Option<::Item> { if self.peeked.is_some() { @@ -268,7 +268,7 @@ impl<'a> Parser<'a> { Cow::Owned(owned) => Ok(Cow::Owned(owned)), }; self.clear_acc(); - ret.map_err(Error::from) + ret } /// In some ways the main way to use a `Parser`, this runs the parsing step -- cgit v1.2.3