fix: lifetime-related lints
This commit is contained in:
parent
5c39bf4842
commit
c4feff37a5
2 changed files with 3 additions and 2 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
|
|
@ -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> {
|
||||
|
|
|
|||
Reference in a new issue