diff options
Diffstat (limited to 'lib/src/lints/bool_comparison.rs')
-rw-r--r-- | lib/src/lints/bool_comparison.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/bool_comparison.rs b/lib/src/lints/bool_comparison.rs index d23a4b0..0b5733b 100644 --- a/lib/src/lints/bool_comparison.rs +++ b/lib/src/lints/bool_comparison.rs | |||
@@ -18,8 +18,8 @@ struct BoolComparison; | |||
18 | impl Rule for BoolComparison { | 18 | impl Rule for BoolComparison { |
19 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { | 19 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { |
20 | if_chain! { | 20 | if_chain! { |
21 | if let NodeOrToken::Node(bin_op_node) = node; | 21 | if let NodeOrToken::Node(node) = node; |
22 | if let Some(bin_expr) = BinOp::cast(bin_op_node.clone()); | 22 | if let Some(bin_expr) = BinOp::cast(node.clone()); |
23 | if let Some(lhs) = bin_expr.lhs(); | 23 | if let Some(lhs) = bin_expr.lhs(); |
24 | if let Some(rhs) = bin_expr.rhs(); | 24 | if let Some(rhs) = bin_expr.rhs(); |
25 | 25 | ||