aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lints/manual_inherit_from.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_from.rs
parentea2e23496672257dd1728ce36259249c3efb8aec (diff)
minor refactor
Diffstat (limited to 'lib/src/lints/manual_inherit_from.rs')
-rw-r--r--lib/src/lints/manual_inherit_from.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/src/lints/manual_inherit_from.rs b/lib/src/lints/manual_inherit_from.rs
index d7a00b2..2bff5f8 100644
--- a/lib/src/lints/manual_inherit_from.rs
+++ b/lib/src/lints/manual_inherit_from.rs
@@ -37,7 +37,7 @@ impl Rule for ManualInherit {
37 let set = value.set()?; 37 let set = value.set()?;
38 make::inherit_from_stmt(set, &[key]).node().clone() 38 make::inherit_from_stmt(set, &[key]).node().clone()
39 }; 39 };
40 let message = format!("This assignment is better written with `inherit`"); 40 let message = "This assignment is better written with `inherit`";
41 Some(Self::report().suggest(at, message, Suggestion::new(at, replacement))) 41 Some(Self::report().suggest(at, message, Suggestion::new(at, replacement)))
42 } else { 42 } else {
43 None 43 None