aboutsummaryrefslogtreecommitdiff
path: root/lib/src
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-03 12:29:54 +0100
committerAkshay <[email protected]>2021-10-03 12:29:54 +0100
commitdf6d9dc1c390d86b378c103ec03dc75af2474d10 (patch)
treee93ee0927c92fe63d7ca2467d07eb5c25eea840e /lib/src
parent75c3d4be13a5d5f525ee1ff8bc68e3c1ce0f7509 (diff)
consistent naming
Diffstat (limited to 'lib/src')
-rw-r--r--lib/src/lints/bool_comparison.rs4
-rw-r--r--lib/src/lints/empty_let_in.rs4
-rw-r--r--lib/src/lints/manual_inherit.rs4
-rw-r--r--lib/src/lints/manual_inherit_from.rs4
4 files changed, 8 insertions, 8 deletions
diff --git a/lib/src/lints/bool_comparison.rs b/lib/src/lints/bool_comparison.rs
index d23a4b0..0b5733b 100644
--- a/lib/src/lints/bool_comparison.rs
+++ b/lib/src/lints/bool_comparison.rs
@@ -18,8 +18,8 @@ struct BoolComparison;
18impl Rule for BoolComparison { 18impl Rule for BoolComparison {
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(bin_op_node) = node; 21 if let NodeOrToken::Node(node) = node;
22 if let Some(bin_expr) = BinOp::cast(bin_op_node.clone()); 22 if let Some(bin_expr) = BinOp::cast(node.clone());
23 if let Some(lhs) = bin_expr.lhs(); 23 if let Some(lhs) = bin_expr.lhs();
24 if let Some(rhs) = bin_expr.rhs(); 24 if let Some(rhs) = bin_expr.rhs();
25 25
diff --git a/lib/src/lints/empty_let_in.rs b/lib/src/lints/empty_let_in.rs
index 207d253..aae1377 100644
--- a/lib/src/lints/empty_let_in.rs
+++ b/lib/src/lints/empty_let_in.rs
@@ -18,8 +18,8 @@ struct EmptyLetIn;
18impl Rule for EmptyLetIn { 18impl Rule for EmptyLetIn {
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(let_in_node) = node; 21 if let NodeOrToken::Node(node) = node;
22 if let Some(let_in_expr) = LetIn::cast(let_in_node.clone()); 22 if let Some(let_in_expr) = LetIn::cast(node.clone());
23 let entries = let_in_expr.entries(); 23 let entries = let_in_expr.entries();
24 let inherits = let_in_expr.inherits(); 24 let inherits = let_in_expr.inherits();
25 25
diff --git a/lib/src/lints/manual_inherit.rs b/lib/src/lints/manual_inherit.rs
index c1b10ec..717d190 100644
--- a/lib/src/lints/manual_inherit.rs
+++ b/lib/src/lints/manual_inherit.rs
@@ -18,8 +18,8 @@ struct ManualInherit;
18impl Rule for ManualInherit { 18impl 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);
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;
18impl Rule for ManualInherit { 18impl 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);