diff options
Diffstat (limited to 'lib/src/lints/useless_parens.rs')
-rw-r--r-- | lib/src/lints/useless_parens.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/useless_parens.rs b/lib/src/lints/useless_parens.rs index 09d6f04..9cba4b3 100644 --- a/lib/src/lints/useless_parens.rs +++ b/lib/src/lints/useless_parens.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use crate::{Diagnostic, Metadata, Report, Rule, Suggestion}; | 1 | use crate::{session::SessionInfo, Diagnostic, 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; |
@@ -45,7 +45,7 @@ use rnix::{ | |||
45 | struct UselessParens; | 45 | struct UselessParens; |
46 | 46 | ||
47 | impl Rule for UselessParens { | 47 | impl Rule for UselessParens { |
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(parsed_type_node) = ParsedType::cast(node.clone()); | 51 | if let Some(parsed_type_node) = ParsedType::cast(node.clone()); |