diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2019-01-21 11:41:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-21 11:41:33 +0100 |
| commit | 4532073a29e4117ea930906e7683c45d8382e5bc (patch) | |
| tree | 316ccdad53d9dbf7949c50b1bf45d0bc3358a558 | |
| parent | 0a0792e53571540cf6de8e60099a814201c5664e (diff) | |
| download | rust-4532073a29e4117ea930906e7683c45d8382e5bc.tar.gz rust-4532073a29e4117ea930906e7683c45d8382e5bc.zip | |
Update clippy_lints/src/needless_bool.rs
Co-Authored-By: g-bartoszek <grzegorz.bartoszek@thaumatec.com>
| -rw-r--r-- | clippy_lints/src/needless_bool.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/needless_bool.rs b/clippy_lints/src/needless_bool.rs index a5fe25d1cba..e58c19eb6df 100644 --- a/clippy_lints/src/needless_bool.rs +++ b/clippy_lints/src/needless_bool.rs @@ -129,7 +129,7 @@ fn parent_node_is_if_expr<'a, 'b>(expr: &Expr, cx: &LateContext<'a, 'b>) -> bool let parent_node = cx.tcx.hir().get(parent_id); if let rustc::hir::Node::Expr(e) = parent_node { - if let ExprKind::If(_,_,_) = e.node { + if let ExprKind::If(_, _, _) = e.node { return true; } } |
