From 38b22150606210580cdc6706a55bac1901852434 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Mon, 10 Apr 2017 15:14:54 +0200 Subject: [PATCH] Dogfood --- clippy_lints/src/eq_op.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clippy_lints/src/eq_op.rs b/clippy_lints/src/eq_op.rs index 002725a4d6d..6fbf99f1342 100644 --- a/clippy_lints/src/eq_op.rs +++ b/clippy_lints/src/eq_op.rs @@ -66,7 +66,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp { BiMul => cx.tcx.lang_items.mul_trait(), BiDiv => cx.tcx.lang_items.div_trait(), BiRem => cx.tcx.lang_items.rem_trait(), - BiAnd => None, + BiAnd | BiOr => None, BiBitXor => cx.tcx.lang_items.bitxor_trait(), BiBitAnd => cx.tcx.lang_items.bitand_trait(), @@ -81,6 +81,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for EqOp { BiGt => cx.tcx.lang_items.ord_trait(), }; if let Some(trait_id) = trait_id { + #[allow(match_same_arms)] match (&left.node, &right.node) { // do not suggest to dereference literals (&ExprLit(..), _) |