-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Suggest resize
rather when pushing same item to vec
#4078
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Labels
A-lint
Area: New lints
good first issue
These issues are a good way to get started with Clippy
L-complexity
Lint: Belongs in the complexity lint group
Comments
EthanTheMaster
added a commit
to EthanTheMaster/rust-clippy
that referenced
this issue
Oct 10, 2019
Was this attached PR #4647 closed just because the conflict was not resolved? If so, and if no one is interested, can I take over? |
@giraffate I believe no one is working on this, sure please go ahead. The PR also provide a good suggestion with |
@giraffate All issued marked with |
bors
added a commit
that referenced
this issue
Aug 7, 2020
Add the new lint `same_item_push` changelog: Add the new lint `same_item_push` Fixed #4078. As I said in #4078 (comment), I referrerd to #4647.
bors
added a commit
that referenced
this issue
Aug 7, 2020
Add the new lint `same_item_push` changelog: Add the new lint `same_item_push` Fixed #4078. As I said in #4078 (comment), I referrerd to #4647.
bors
added a commit
that referenced
this issue
Aug 10, 2020
Add the new lint `same_item_push` changelog: Add the new lint `same_item_push` Fixed #4078. As I said in #4078 (comment), I referrerd to #4647.
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-lint
Area: New lints
good first issue
These issues are a good way to get started with Clippy
L-complexity
Lint: Belongs in the complexity lint group
Example in https://github.com/Gymmasssorla/finshir/blob/eae5d0c6761f5558c8ed33ef098d8bd13a07e64f/src/testing/helpers.rs#L55-L61
When pushing the same item to vec.
Could be.
Maybe we could even use
vec![b''].repeat(EMPTY_SPACES_COUNT)
after stabilization ofrepeat_generic_size
? rust-lang/rust#48784The text was updated successfully, but these errors were encountered: