X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=clippy_lints%2Fsrc%2Feq_op.rs;h=c43dfe6e27ca260a49f69e6fd331ce4f74af8c14;hb=778ce4dfd359eb8071ad76aa6447b23ce7a0c752;hp=7591e3dc076c628b92163c3b6f1ab9a50f47816c;hpb=cdfa8e9f61dc165614b658421c1567800d94096d;p=rust.git diff --git a/clippy_lints/src/eq_op.rs b/clippy_lints/src/eq_op.rs index 7591e3dc076..c43dfe6e27c 100644 --- a/clippy_lints/src/eq_op.rs +++ b/clippy_lints/src/eq_op.rs @@ -32,8 +32,8 @@ fn get_lints(&self) -> LintArray { } } -impl LateLintPass for EqOp { - fn check_expr(&mut self, cx: &LateContext, e: &Expr) { +impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp { + fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) { if let ExprBinary(ref op, ref left, ref right) = e.node { if is_valid_operator(op) && SpanlessEq::new(cx).ignore_fn().eq_expr(left, right) { span_lint(cx,