Skip to content

Commit

Permalink
[Clippy] Swap repeat_vec_with_capacity to use diagnostic item inste…
Browse files Browse the repository at this point in the history
…ad of path
  • Loading branch information
GnomedDev committed Sep 19, 2024
1 parent b95bef0 commit 08b676d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ impl<T> Vec<T> {
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]
#[must_use]
#[cfg_attr(not(test), rustc_diagnostic_item = "vec_with_capacity")]
pub fn with_capacity(capacity: usize) -> Self {
Self::with_capacity_in(capacity, Global)
}
Expand Down

0 comments on commit 08b676d

Please sign in to comment.