Skip to content

Commit dbadac7

Browse files
committed
Use ".." as default value of snippet in excessive_for_each
1 parent 103dc83 commit dbadac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/methods/excessive_for_each.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ pub(super) fn lint(cx: &LateContext<'_>, expr: &'tcx Expr<'_>, args: &[&[Expr<'_
4343

4444
let sugg = format!(
4545
"for {} in {} {{ .. }}",
46-
snippet(cx, body.params[0].pat.span, ""),
47-
snippet(cx, for_each_receiver.span, "")
46+
snippet(cx, body.params[0].pat.span, ".."),
47+
snippet(cx, for_each_receiver.span, "..")
4848
);
4949

5050
span_lint_and_then(

0 commit comments

Comments
 (0)