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 055cba2..41eb5cf 100644 --- a/lib/src/lints/manual_inherit_from.rs +++ b/lib/src/lints/manual_inherit_from.rs | |||
@@ -18,8 +18,8 @@ struct ManualInherit; | |||
18 | impl Rule for ManualInherit { | 18 | impl Rule for ManualInherit { |
19 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { | 19 | fn validate(&self, node: &SyntaxElement) -> Option<Report> { |
20 | if_chain! { | 20 | if_chain! { |
21 | if let NodeOrToken::Node(key_value_node) = node; | 21 | if let NodeOrToken::Node(node) = node; |
22 | if let Some(key_value_stmt) = KeyValue::cast(key_value_node.clone()); | 22 | if let Some(key_value_stmt) = KeyValue::cast(node.clone()); |
23 | if let Some(key_path) = key_value_stmt.key(); | 23 | if let Some(key_path) = key_value_stmt.key(); |
24 | if let Some(key_node) = key_path.path().next(); | 24 | if let Some(key_node) = key_path.path().next(); |
25 | if let Some(key) = Ident::cast(key_node); | 25 | if let Some(key) = Ident::cast(key_node); |