diff --git a/src/client/mod.rs b/src/client/mod.rs index fd796d6..dce1592 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -1503,7 +1503,7 @@ impl RustyPipeQuery { ctype: ClientType, localized: bool, visitor_data: &'a str, - ) -> YTContext { + ) -> YTContext<'a> { let (hl, gl) = if localized { (self.opts.lang, self.opts.country) } else { @@ -2008,6 +2008,7 @@ struct MapRespOptions<'a> { unlocalized: bool, } +#[allow(clippy::needless_lifetimes)] impl<'a> MapRespCtx<'a> { /// Create a [`MapRespCtx`] for testing #[cfg(test)] diff --git a/src/util/timeago.rs b/src/util/timeago.rs index bcd25f0..7e1913f 100644 --- a/src/util/timeago.rs +++ b/src/util/timeago.rs @@ -169,7 +169,7 @@ impl<'a> TaTokenParser<'a> { } } -impl<'a> Iterator for TaTokenParser<'a> { +impl Iterator for TaTokenParser<'_> { type Item = TimeAgo; fn next(&mut self) -> Option {