mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
Fix same_item_push.rs
This commit is contained in:
parent
527fb42a32
commit
6d73777224
@ -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
|
||||
),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user