Merge commit 'd9c24d1b1e
' into clippyup
This commit is contained in:
parent
fdb2e363d3
commit
d6d530fd0b
516 changed files with 5266 additions and 2562 deletions
|
@ -37,7 +37,7 @@ pub(super) fn check(cx: &LateContext<'_>, expr: &hir::Expr<'_>, call_name: &str,
|
|||
USELESS_ASREF,
|
||||
expr.span,
|
||||
&format!("this call to `{call_name}` does nothing"),
|
||||
"try this",
|
||||
"try",
|
||||
snippet_with_applicability(cx, recvr.span, "..", &mut applicability).to_string(),
|
||||
applicability,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue