lint messages: remove trailing period
Since lint messages often are suffixed by ", #[warn(xxx)] on by default" this trailing period produces an ugly clash with the comma.
This commit is contained in:
parent
7aee04878f
commit
a67e55f3f0
11 changed files with 20 additions and 18 deletions
|
@ -59,7 +59,7 @@ fn check_trait_items(cx: &Context, item: &Item, trait_items: &[P<TraitItem>]) {
|
|||
if is_named_self(i, "len") {
|
||||
span_lint(cx, LEN_WITHOUT_IS_EMPTY, i.span,
|
||||
&format!("trait `{}` has a `.len(_: &Self)` method, but no \
|
||||
`.is_empty(_: &Self)` method. Consider adding one.",
|
||||
`.is_empty(_: &Self)` method. Consider adding one",
|
||||
item.ident.name));
|
||||
}
|
||||
};
|
||||
|
@ -79,7 +79,7 @@ fn check_impl_items(cx: &Context, item: &Item, impl_items: &[P<ImplItem>]) {
|
|||
span_lint(cx, LEN_WITHOUT_IS_EMPTY,
|
||||
Span{ lo: s.lo, hi: s.lo, expn_id: s.expn_id },
|
||||
&format!("item `{}` has a `.len(_: &Self)` method, but no \
|
||||
`.is_empty(_: &Self)` method. Consider adding one.",
|
||||
`.is_empty(_: &Self)` method. Consider adding one",
|
||||
item.ident.name));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue