fix: lifetime-related lints

This commit is contained in:
ThetaDev 2024-12-01 22:29:24 +01:00
parent 5c39bf4842
commit c4feff37a5
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
2 changed files with 3 additions and 2 deletions

View file

@ -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)]

View file

@ -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<Self::Item> {