aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lints/collapsible_let_in.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/lints/collapsible_let_in.rs')
-rw-r--r--lib/src/lints/collapsible_let_in.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/collapsible_let_in.rs b/lib/src/lints/collapsible_let_in.rs
index aa7e5a7..1c04d9c 100644
--- a/lib/src/lints/collapsible_let_in.rs
+++ b/lib/src/lints/collapsible_let_in.rs
@@ -1,4 +1,4 @@
1use crate::{make, Metadata, Report, Rule, Suggestion}; 1use crate::{make, session::SessionInfo, Metadata, Report, Rule, Suggestion};
2 2
3use if_chain::if_chain; 3use if_chain::if_chain;
4use macros::lint; 4use macros::lint;
@@ -45,7 +45,7 @@ use rowan::Direction;
45struct CollapsibleLetIn; 45struct CollapsibleLetIn;
46 46
47impl Rule for CollapsibleLetIn { 47impl Rule for CollapsibleLetIn {
48 fn validate(&self, node: &SyntaxElement) -> Option<Report> { 48 fn validate(&self, node: &SyntaxElement, _sess: &SessionInfo) -> Option<Report> {
49 if_chain! { 49 if_chain! {
50 if let NodeOrToken::Node(node) = node; 50 if let NodeOrToken::Node(node) = node;
51 if let Some(let_in_expr) = LetIn::cast(node.clone()); 51 if let Some(let_in_expr) = LetIn::cast(node.clone());