aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lints/legacy_let_syntax.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/lints/legacy_let_syntax.rs')
-rw-r--r--lib/src/lints/legacy_let_syntax.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/legacy_let_syntax.rs b/lib/src/lints/legacy_let_syntax.rs
index 5d0028b..e0b8980 100644
--- a/lib/src/lints/legacy_let_syntax.rs
+++ b/lib/src/lints/legacy_let_syntax.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;
@@ -44,7 +44,7 @@ use rnix::{
44struct ManualInherit; 44struct ManualInherit;
45 45
46impl Rule for ManualInherit { 46impl Rule for ManualInherit {
47 fn validate(&self, node: &SyntaxElement) -> Option<Report> { 47 fn validate(&self, node: &SyntaxElement, _sess: &SessionInfo) -> Option<Report> {
48 if_chain! { 48 if_chain! {
49 if let NodeOrToken::Node(node) = node; 49 if let NodeOrToken::Node(node) = node;
50 if let Some(legacy_let) = LegacyLet::cast(node.clone()); 50 if let Some(legacy_let) = LegacyLet::cast(node.clone());