mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-02 18:12:51 +00:00
formatting fix
This commit is contained in:
parent
4532073a29
commit
34785a12f4
@ -67,7 +67,6 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for NeedlessBool {
|
||||
fn check_expr(&mut self, cx: &LateContext<'a, 'tcx>, e: &'tcx Expr) {
|
||||
use self::Expression::*;
|
||||
if let ExprKind::If(ref pred, ref then_block, Some(ref else_expr)) = e.node {
|
||||
|
||||
let reduce = |ret, not| {
|
||||
let mut applicability = Applicability::MachineApplicable;
|
||||
let snip = Sugg::hir_with_applicability(cx, pred, "<predicate>", &mut applicability);
|
||||
|
Loading…
Reference in New Issue
Block a user