diff options
Diffstat (limited to 'lib/src/lints/empty_let_in.rs')
-rw-r--r-- | lib/src/lints/empty_let_in.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/empty_let_in.rs b/lib/src/lints/empty_let_in.rs index 207d253..aae1377 100644 --- a/lib/src/lints/empty_let_in.rs +++ b/lib/src/lints/empty_let_in.rs | |||
@@ -18,8 +18,8 @@ struct EmptyLetIn; | |||
18 | impl Rule for EmptyLetIn { | 18 | impl Rule for EmptyLetIn { |
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(let_in_node) = node; | 21 | if let NodeOrToken::Node(node) = node; |
22 | if let Some(let_in_expr) = LetIn::cast(let_in_node.clone()); | 22 | if let Some(let_in_expr) = LetIn::cast(node.clone()); |
23 | let entries = let_in_expr.entries(); | 23 | let entries = let_in_expr.entries(); |
24 | let inherits = let_in_expr.inherits(); | 24 | let inherits = let_in_expr.inherits(); |
25 | 25 | ||