diff --git a/clippy_lints/src/write.rs b/clippy_lints/src/write.rs index 0b52981bf..d8bbf0098 100644 --- a/clippy_lints/src/write.rs +++ b/clippy_lints/src/write.rs @@ -217,7 +217,7 @@ impl EarlyLintPass for Pass { } } -fn check_tts(cx: &EarlyContext<'a>, tts: &ThinTokenStream, is_write: bool) -> Option { +fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &ThinTokenStream, is_write: bool) -> Option { let tts = TokenStream::from(tts.clone()); let mut parser = parser::Parser::new( &cx.sess.parse_sess,