diff options
Diffstat (limited to 'lib/src/lints/empty_inherit.rs')
-rw-r--r-- | lib/src/lints/empty_inherit.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/empty_inherit.rs b/lib/src/lints/empty_inherit.rs index 9ae4cf2..871c218 100644 --- a/lib/src/lints/empty_inherit.rs +++ b/lib/src/lints/empty_inherit.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use crate::{make, utils, Metadata, Report, Rule, Suggestion}; | 1 | use crate::{make, session::SessionInfo, utils, 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; |
@@ -29,7 +29,7 @@ use rnix::{ | |||
29 | struct EmptyInherit; | 29 | struct EmptyInherit; |
30 | 30 | ||
31 | impl Rule for EmptyInherit { | 31 | impl Rule for EmptyInherit { |
32 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { | 32 | fn validate(&self, node: &SyntaxElement, _sess: &SessionInfo) -> Option<Report> { |
33 | if_chain! { | 33 | if_chain! { |
34 | if let NodeOrToken::Node(node) = node; | 34 | if let NodeOrToken::Node(node) = node; |
35 | if let Some(inherit_stmt) = Inherit::cast(node.clone()); | 35 | if let Some(inherit_stmt) = Inherit::cast(node.clone()); |