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

chore: Apply Clippy lint iter_with_drain #5641

Merged

Conversation

jbencin
Copy link
Contributor

@jbencin jbencin commented Jan 2, 2025

Description

Apply Clippy lint iter_with_drain, which finds places where .drain(..) can be replaced with .into_iter() (there are still a couple false positives in the code)

This is more efficient because into_iter() does not clear the Vec

@jbencin jbencin requested a review from a team as a code owner January 2, 2025 23:06
@jbencin jbencin changed the title chore: Fix Clippy lint iter_with_drain chore: Apply Clippy lint iter_with_drain Jan 2, 2025
@jbencin jbencin requested a review from jferrant January 2, 2025 23:07
@jcnelson jcnelson self-requested a review January 3, 2025 03:26
Copy link
Contributor

@obycode obycode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jbencin jbencin added this pull request to the merge queue Jan 3, 2025
Merged via the queue into stacks-network:develop with commit e88623c Jan 3, 2025
2 checks passed
@blockstack-devops
Copy link
Contributor

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@stacks-network stacks-network locked as resolved and limited conversation to collaborators Jan 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants