diff options
author | Akshay <[email protected]> | 2021-10-19 11:30:03 +0100 |
---|---|---|
committer | Akshay <[email protected]> | 2021-10-19 11:30:03 +0100 |
commit | d666cfa6b1739ac17d080790068e31eb26bb9c4a (patch) | |
tree | 814ffd195695ca5e10aef49039be83995127f366 /lib/src/lints/manual_inherit_from.rs | |
parent | 214e3bc4b675b08ce4df76b1373f4548949e67ee (diff) |
rework few error messages
Diffstat (limited to 'lib/src/lints/manual_inherit_from.rs')
-rw-r--r-- | lib/src/lints/manual_inherit_from.rs | 2 |
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 41eb5cf..d7a00b2 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!("The assignment `{}` is better written with `inherit`", node); | 40 | let message = format!("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 |