diff options
Diffstat (limited to 'lib/src/lints/manual_inherit.rs')
-rw-r--r-- | lib/src/lints/manual_inherit.rs | 2 |
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 |