added helpful links to lints that have wiki entries
This commit is contained in:
parent
5e341715cd
commit
6984d2bc09
8 changed files with 150 additions and 83 deletions
|
|
@ -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, "..")))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue