]> git.lizzy.rs Git - rust.git/blobdiff - clippy_lints/src/eq_op.rs
update to the rust-PR that unblocks clippy
[rust.git] / clippy_lints / src / eq_op.rs
index 8cfeabba9fcb2ad136932e0796093da425d8581d..c43dfe6e27ca260a49f69e6fd331ce4f74af8c14 100644 (file)
@@ -32,8 +32,8 @@ fn get_lints(&self) -> LintArray {
     }
 }
 
-impl LateLintPass for EqOp {
-    fn check_expr<'a, 'tcx: 'a>(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx 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,