Improve error message

This commit is contained in:
mcarton 2016-02-05 19:46:11 +01:00
parent 0f50b0981d
commit c0063e172d

View File

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