Update clippy_lints/src/needless_bool.rs

Co-Authored-By: g-bartoszek <grzegorz.bartoszek@thaumatec.com>
This commit is contained in:
Oliver Scherer 2019-01-21 11:41:33 +01:00 committed by GitHub
parent 0a0792e535
commit 4532073a29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
}