Skip to content

Commit 4532073

Browse files
oli-obkg-bartoszek
and
g-bartoszek
authored
Update clippy_lints/src/needless_bool.rs
Co-Authored-By: g-bartoszek <[email protected]>
1 parent 0a0792e commit 4532073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/needless_bool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ fn parent_node_is_if_expr<'a, 'b>(expr: &Expr, cx: &LateContext<'a, 'b>) -> bool
129129
let parent_node = cx.tcx.hir().get(parent_id);
130130

131131
if let rustc::hir::Node::Expr(e) = parent_node {
132-
if let ExprKind::If(_,_,_) = e.node {
132+
if let ExprKind::If(_, _, _) = e.node {
133133
return true;
134134
}
135135
}

0 commit comments

Comments
 (0)