added helpful links to lints that have wiki entries

This commit is contained in:
llogiq 2015-08-26 14:26:43 +02:00
parent 5e341715cd
commit 6984d2bc09
8 changed files with 150 additions and 83 deletions

View file

@ -60,7 +60,7 @@ impl ReturnPass {
fn emit_return_lint(&mut self, cx: &Context, spans: (Span, Span)) {
span_lint(cx, NEEDLESS_RETURN, spans.0, &format!(
"unneeded return statement. Consider using `{}` \
without the trailing semicolon",
without the return and trailing semicolon",
snippet(cx, spans.1, "..")))
}