mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-19 20:13:47 +00:00
Improve error message
This commit is contained in:
parent
0f50b0981d
commit
c0063e172d
@ -547,7 +547,7 @@ fn check_for_loop_over_map_kv(cx: &LateContext, pat: &Pat, arg: &Expr, body: &Ex
|
||||
|db| {
|
||||
db.span_suggestion(expr.span,
|
||||
"use the corresponding method",
|
||||
format!("for {} in {}.{}()",
|
||||
format!("for {} in {}.{}() {{...}}",
|
||||
snippet(cx, *pat_span, ".."),
|
||||
snippet(cx, arg_span, ".."),
|
||||
kind));
|
||||
|
Loading…
Reference in New Issue
Block a user