diff options
Diffstat (limited to 'lib/src/lints/manual_inherit_from.rs')
-rw-r--r-- | lib/src/lints/manual_inherit_from.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/manual_inherit_from.rs b/lib/src/lints/manual_inherit_from.rs index 05d6bc8..a62a6c7 100644 --- a/lib/src/lints/manual_inherit_from.rs +++ b/lib/src/lints/manual_inherit_from.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; |
@@ -40,7 +40,7 @@ use rnix::{ | |||
40 | struct ManualInherit; | 40 | struct ManualInherit; |
41 | 41 | ||
42 | impl Rule for ManualInherit { | 42 | impl Rule for ManualInherit { |
43 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { | 43 | fn validate(&self, node: &SyntaxElement, _sess: &SessionInfo) -> Option<Report> { |
44 | if_chain! { | 44 | if_chain! { |
45 | if let NodeOrToken::Node(node) = node; | 45 | if let NodeOrToken::Node(node) = node; |
46 | if let Some(key_value_stmt) = KeyValue::cast(node.clone()); | 46 | if let Some(key_value_stmt) = KeyValue::cast(node.clone()); |