Skip to content

Commit cdfb72a

Browse files
committed
fmt
1 parent 4cfb096 commit cdfb72a

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

clippy_lints/src/needless_bool.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,9 @@ fn parent_node_is_if_expr<'a, 'b>(expr: &Expr, cx: &LateContext<'a, 'b>) -> bool
119119
let parent_node = cx.tcx.hir().get(parent_id);
120120

121121
match parent_node {
122-
rustc::hir::Node::Expr(e) => {
123-
higher::if_block(&e).is_some()
124-
},
125-
rustc::hir::Node::Arm(e) => {
126-
higher::if_block(&e.body).is_some()
127-
},
128-
_ => false
122+
rustc::hir::Node::Expr(e) => higher::if_block(&e).is_some(),
123+
rustc::hir::Node::Arm(e) => higher::if_block(&e.body).is_some(),
124+
_ => false,
129125
}
130126
}
131127

0 commit comments

Comments
 (0)