diff options
Diffstat (limited to 'lib/src/lints/eta_reduction.rs')
-rw-r--r-- | lib/src/lints/eta_reduction.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/eta_reduction.rs b/lib/src/lints/eta_reduction.rs index 580f4a0..8e9d2a3 100644 --- a/lib/src/lints/eta_reduction.rs +++ b/lib/src/lints/eta_reduction.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; |
@@ -42,7 +42,7 @@ use rnix::{ | |||
42 | struct EtaReduction; | 42 | struct EtaReduction; |
43 | 43 | ||
44 | impl Rule for EtaReduction { | 44 | impl Rule for EtaReduction { |
45 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { | 45 | fn validate(&self, node: &SyntaxElement, _sess: &SessionInfo) -> Option<Report> { |
46 | if_chain! { | 46 | if_chain! { |
47 | if let NodeOrToken::Node(node) = node; | 47 | if let NodeOrToken::Node(node) = node; |
48 | if let Some(lambda_expr) = Lambda::cast(node.clone()); | 48 | if let Some(lambda_expr) = Lambda::cast(node.clone()); |