Skip to content

Commit

Permalink
Update Why is this bad
Browse files Browse the repository at this point in the history
Co-authored-by: Alex <69764315+Serial-ATA@users.noreply.github.com>
  • Loading branch information
kyoto7250 and Serial-ATA authored Jul 1, 2022
1 parent 4ffdd8a commit 4f50168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/unnecessary_reserve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare_clippy_lint! {
/// ### What it does
/// This lint checks for a call to `reserve` before `extend` on a `Vec` or `VecDeque`.
/// ### Why is this bad?
/// vec::reserve method before vec::extend is no longer makes sense in rustc version >= 1.62
/// Since Rust 1.62, `extend` implicitly calls `reserve`
/// ### Example
/// ```rust
/// let mut vec: Vec<usize> = vec![];
Expand Down

0 comments on commit 4f50168

Please sign in to comment.