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 d33d0ae..e42f658 100644 --- a/lib/src/lints/empty_let_in.rs +++ b/lib/src/lints/empty_let_in.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use crate::{Metadata, Report, Rule, Suggestion}; | 1 | use crate::{session::SessionInfo, Metadata, Report, Rule, Suggestion}; |
2 | 2 | ||
3 | use if_chain::if_chain; | 3 | use if_chain::if_chain; |
4 | use macros::lint; | 4 | use macros::lint; |
@@ -34,7 +34,7 @@ use rnix::{ | |||
34 | struct EmptyLetIn; | 34 | struct EmptyLetIn; |
35 | 35 | ||
36 | impl Rule for EmptyLetIn { | 36 | impl Rule for EmptyLetIn { |
37 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { | 37 | fn validate(&self, node: &SyntaxElement, _sess: &SessionInfo) -> Option<Report> { |
38 | if_chain! { | 38 | if_chain! { |
39 | if let NodeOrToken::Node(node) = node; | 39 | if let NodeOrToken::Node(node) = node; |
40 | if let Some(let_in_expr) = LetIn::cast(node.clone()); | 40 | if let Some(let_in_expr) = LetIn::cast(node.clone()); |