diff options
Diffstat (limited to 'lib/src/lints/empty_pattern.rs')
-rw-r--r-- | lib/src/lints/empty_pattern.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/empty_pattern.rs b/lib/src/lints/empty_pattern.rs index f66a3b1..e03708b 100644 --- a/lib/src/lints/empty_pattern.rs +++ b/lib/src/lints/empty_pattern.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use crate::{make, Metadata, Report, Rule, Suggestion}; | 1 | use crate::{make, 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; |
@@ -43,7 +43,7 @@ use rnix::{ | |||
43 | struct EmptyPattern; | 43 | struct EmptyPattern; |
44 | 44 | ||
45 | impl Rule for EmptyPattern { | 45 | impl Rule for EmptyPattern { |
46 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { | 46 | fn validate(&self, node: &SyntaxElement, _sess: &SessionInfo) -> Option<Report> { |
47 | if_chain! { | 47 | if_chain! { |
48 | if let NodeOrToken::Node(node) = node; | 48 | if let NodeOrToken::Node(node) = node; |
49 | if let Some(pattern) = Pattern::cast(node.clone()); | 49 | if let Some(pattern) = Pattern::cast(node.clone()); |