diff options
Diffstat (limited to 'lib/src/lints/redundant_pattern_bind.rs')
-rw-r--r-- | lib/src/lints/redundant_pattern_bind.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/redundant_pattern_bind.rs b/lib/src/lints/redundant_pattern_bind.rs index 88ce4b0..56957ce 100644 --- a/lib/src/lints/redundant_pattern_bind.rs +++ b/lib/src/lints/redundant_pattern_bind.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; |
@@ -35,7 +35,7 @@ use rnix::{ | |||
35 | struct RedundantPatternBind; | 35 | struct RedundantPatternBind; |
36 | 36 | ||
37 | impl Rule for RedundantPatternBind { | 37 | impl Rule for RedundantPatternBind { |
38 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { | 38 | fn validate(&self, node: &SyntaxElement, _sess: &SessionInfo) -> Option<Report> { |
39 | if_chain! { | 39 | if_chain! { |
40 | if let NodeOrToken::Node(node) = node; | 40 | if let NodeOrToken::Node(node) = node; |
41 | if let Some(pattern) = Pattern::cast(node.clone()); | 41 | if let Some(pattern) = Pattern::cast(node.clone()); |