aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lints/unquoted_splice.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/src/lints/unquoted_splice.rs')
-rw-r--r--lib/src/lints/unquoted_splice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/lints/unquoted_splice.rs b/lib/src/lints/unquoted_splice.rs
index 7649fbc..ba1641a 100644
--- a/lib/src/lints/unquoted_splice.rs
+++ b/lib/src/lints/unquoted_splice.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;
@@ -40,7 +40,7 @@ use rnix::{
40struct UnquotedSplice; 40struct UnquotedSplice;
41 41
42impl Rule for UnquotedSplice { 42impl Rule for UnquotedSplice {
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 Dynamic::cast(node.clone()).is_some(); 46 if Dynamic::cast(node.clone()).is_some();