-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unnecessary Vec/VecDeque reserve lint #8982
Labels
A-lint
Area: New lints
Comments
@rustbot claim |
#9073 is the start of an implementation. The PR was closed due to inactivity. It might be a good reference point, if someone else wants to give this a go :) |
@rustbot claim |
@chansuke do you mind if I take over this? |
Since there hasn't been any activity since the start of this year, it's safe to assume that you can have this issue. I'll assign you to it 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What it does
Inspired by:
rust-lang/rust#97922
In a basic case like this Clippy could suggest to remove the call to reserve() because it's unnecessary:
Lint Name
unnecessary_reserve
Category
pedantic
Advantage
No response
Drawbacks
No response
Example
The same for VecDeque.
The text was updated successfully, but these errors were encountered: