We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4532073 commit 34785a1Copy full SHA for 34785a1
clippy_lints/src/needless_bool.rs
@@ -67,7 +67,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NeedlessBool {
67
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
68
use self::Expression::*;
69
if let ExprKind::If(ref pred, ref then_block, Some(ref else_expr)) = e.node {
70
-
71
let reduce = |ret, not| {
72
let mut applicability = Applicability::MachineApplicable;
73
let snip = Sugg::hir_with_applicability(cx, pred, "<predicate>", &mut applicability);
0 commit comments