]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/format.rs
update to the rust-PR that unblocks clippy
[rust.git] / clippy_lints / src / format.rs
index 92970bc5e01b269a2b3f218b7aff2f50adfc82d0..0cf4762364ba27fe7de31039ef6631fa71a5dc87 100644 (file)
@@ -38,8 +38,8 @@ fn get_lints(&self) -> LintArray {
     }
 }
 
-impl LateLintPass for Pass {
-    fn check_expr(&mut self, cx: &LateContext, expr: &Expr) {
+impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Pass {
+    fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, expr: &'tcx Expr) {
         if let Some(span) = is_expn_of(cx, expr.span, "format") {
             match expr.node {
                 // `format!("{}", foo)` expansion