1
Fork 0

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:
Georg Brandl 2015-08-13 08:15:42 +02:00
parent 7aee04878f
commit a67e55f3f0
11 changed files with 20 additions and 18 deletions

View file

@ -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;
}