aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lints/manual_inherit.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-19 17:57:23 +0100
committerAkshay <[email protected]>2021-10-19 17:57:23 +0100
commitb26272ba3e9067197e0aff16ba2ce8780e0acb96 (patch)
treedd97ddf664bd2255e9617bbdf41364134003c8cb /lib/src/lints/manual_inherit.rs
parentea2e23496672257dd1728ce36259249c3efb8aec (diff)
minor refactor
Diffstat (limited to 'lib/src/lints/manual_inherit.rs')
-rw-r--r--lib/src/lints/manual_inherit.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/src/lints/manual_inherit.rs b/lib/src/lints/manual_inherit.rs
index 3524dd3..69f032b 100644
--- a/lib/src/lints/manual_inherit.rs
+++ b/lib/src/lints/manual_inherit.rs
@@ -32,7 +32,7 @@ impl Rule for ManualInherit {
32 then { 32 then {
33 let at = node.text_range(); 33 let at = node.text_range();
34 let replacement = make::inherit_stmt(&[key]).node().clone(); 34 let replacement = make::inherit_stmt(&[key]).node().clone();
35 let message = format!("This assignment is better written with `inherit`"); 35 let message = "This assignment is better written with `inherit`";
36 Some(Self::report().suggest(at, message, Suggestion::new(at, replacement))) 36 Some(Self::report().suggest(at, message, Suggestion::new(at, replacement)))
37 } else { 37 } else {
38 None 38 None