aboutsummaryrefslogtreecommitdiff
path: root/lib/src/lints/manual_inherit.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-10-19 11:30:03 +0100
committerAkshay <[email protected]>2021-10-19 11:30:03 +0100
commitd666cfa6b1739ac17d080790068e31eb26bb9c4a (patch)
tree814ffd195695ca5e10aef49039be83995127f366 /lib/src/lints/manual_inherit.rs
parent214e3bc4b675b08ce4df76b1373f4548949e67ee (diff)
rework few error messages
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 717d190..3524dd3 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!("The assignment `{}` is better written with `inherit`", node); 35 let message = format!("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