fix: lifetime-related lints

This commit is contained in:
ThetaDev 2024-12-01 22:29:24 +01:00
parent 54f537e84a
commit 8a2dee19f7
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)]