diff options
author | Akshay <[email protected]> | 2021-12-29 05:23:38 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2022-01-08 10:33:10 +0000 |
commit | d1ff222bcf94152cd657233cffd8c14a45788c26 (patch) | |
tree | fb8c94daefe0384a48b503fdd4bfaff905d78e2f /lib/src/lints/legacy_let_syntax.rs | |
parent | 94a2edf57340ac3f3a2276c88a221ba3125172af (diff) |
allow for version based lints
Diffstat (limited to 'lib/src/lints/legacy_let_syntax.rs')
-rw-r--r-- | lib/src/lints/legacy_let_syntax.rs | 4 |
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 @@ | |||
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; |
@@ -44,7 +44,7 @@ use rnix::{ | |||
44 | struct ManualInherit; | 44 | struct ManualInherit; |
45 | 45 | ||
46 | impl Rule for ManualInherit { | 46 | impl 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()); |