fix: lifetime-related lints
This commit is contained in:
parent
54f537e84a
commit
8a2dee19f7
2 changed files with 3 additions and 2 deletions
|
|
@ -1503,7 +1503,7 @@ impl RustyPipeQuery {
|
||||||
ctype: ClientType,
|
ctype: ClientType,
|
||||||
localized: bool,
|
localized: bool,
|
||||||
visitor_data: &'a str,
|
visitor_data: &'a str,
|
||||||
) -> YTContext {
|
) -> YTContext<'a> {
|
||||||
let (hl, gl) = if localized {
|
let (hl, gl) = if localized {
|
||||||
(self.opts.lang, self.opts.country)
|
(self.opts.lang, self.opts.country)
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -2008,6 +2008,7 @@ struct MapRespOptions<'a> {
|
||||||
unlocalized: bool,
|
unlocalized: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(clippy::needless_lifetimes)]
|
||||||
impl<'a> MapRespCtx<'a> {
|
impl<'a> MapRespCtx<'a> {
|
||||||
/// Create a [`MapRespCtx`] for testing
|
/// Create a [`MapRespCtx`] for testing
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ impl<'a> TaTokenParser<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Iterator for TaTokenParser<'a> {
|
impl Iterator for TaTokenParser<'_> {
|
||||||
type Item = TimeAgo;
|
type Item = TimeAgo;
|
||||||
|
|
||||||
fn next(&mut self) -> Option<Self::Item> {
|
fn next(&mut self) -> Option<Self::Item> {
|
||||||
|
|
|
||||||
Reference in a new issue