Skip to content

Commit 5f794bc

Browse files
kyoto7250Serial-ATA
andcommitted
Update Why is this bad
Co-authored-by: Alex <[email protected]>
1 parent e86dc60 commit 5f794bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/unnecessary_reserve.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare_clippy_lint! {
1111
/// ### What it does
1212
/// This lint checks for a call to `reserve` before `extend` on a `Vec` or `VecDeque`.
1313
/// ### Why is this bad?
14-
/// vec::reserve method before vec::extend is no longer makes sense in rustc version >= 1.62
14+
/// Since Rust 1.62, `extend` implicitly calls `reserve`
1515
/// ### Example
1616
/// ```rust
1717
/// let mut vec: Vec<usize> = vec![];

0 commit comments

Comments
 (0)