Skip to content
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

clippy: Fix reserve_after_initialization warning. #297

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

waywardmonkeys
Copy link
Contributor

When calling Vec::new() and then immediately calling Vec::reserve() on the resulting vector, it is more concise and less complex to just use Vec::with_capacity() instead.

This is a new clippy lint coming in 1.73.

When calling `Vec::new()` and then immediately calling `Vec::reserve()`
on the resulting vector, it is more concise and less complex to just
use `Vec::with_capacity()` instead.

This is a new clippy lint coming in 1.73.
@DataTriny DataTriny merged commit 034888a into AccessKit:main Sep 20, 2023
5 checks passed
@waywardmonkeys waywardmonkeys deleted the use-vec-with-capacity branch September 20, 2023 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants