Skip to content

Commit 6d73777

Browse files
committed
Fix same_item_push.rs
1 parent 527fb42 commit 6d73777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/loops/same_item_push.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pub(super) fn check<'tcx>(
3232
"it looks like the same item is being pushed into this Vec",
3333
None,
3434
&format!(
35-
"try using vec![{}; SIZE] or {}.resize(NEW_SIZE, {})",
35+
"try using vec![{};SIZE] or {}.resize(NEW_SIZE, {})",
3636
item_str, vec_str, item_str
3737
),
3838
);

0 commit comments

Comments
 (0)