Fix same_item_push.rs

This commit is contained in:
mbartlett21 2021-05-25 02:03:31 +00:00
parent 527fb42a32
commit 6d73777224

View File

@ -32,7 +32,7 @@ pub(super) fn check<'tcx>(
"it looks like the same item is being pushed into this Vec",
None,
&format!(
"try using vec![{}; SIZE] or {}.resize(NEW_SIZE, {})",
"try using vec![{};SIZE] or {}.resize(NEW_SIZE, {})",
item_str, vec_str, item_str
),
);