summaryrefslogtreecommitdiff
path: root/src/de
diff options
context:
space:
mode:
authorCyril Plisko <cyril.plisko@mountall.com>2025-03-04 20:04:08 +0200
committerGitHub <noreply@github.com>2025-03-04 12:04:08 -0600
commit4dd54a17c4a1b70d2cbf9891c2122994fcec71af (patch)
tree7309eb3f6609634517b8bcd04eef78e6d687d3b4 /src/de
parent776843be76e58c2045e2f80e75a72bfd9cac9d83 (diff)
clippy::multiple_bound_locations (#103)
* clippy::multiple_bound_locations * A few more clippy fixes. --------- Co-authored-by: Sam Scott <sam@osohq.com>
Diffstat (limited to 'src/de')
-rw-r--r--src/de/parse.rs4
1 files changed, 2 insertions, 2 deletions
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<<Self as Iterator>::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