Skip to content

script: Remove clippy lint by refactoring code and using FxHashSet for intermediate hashset - #46238

Merged
TimvdLippe merged 1 commit into
servo:mainfrom
Narfinger:clippy-cleanup2
Jul 3, 2026
Merged

TimvdLippe merged 1 commit into
servo:mainfrom
Narfinger:clippy-cleanup2

Conversation

@Narfinger

Copy link
Copy Markdown
Contributor

This removes the clippy lint by using the HashSet::from_iter construction which is more idiomatic.
Additionally, we use FxHashSet for this intermediate HashSet. While FxHashSet can be used to slow down this function with a bad input, so can adding lots of elements which is an easier way.

Testing: This does not change functionality just performance characteristics.

@Narfinger
Narfinger requested a review from gterzian as a code owner July 3, 2026 13:12
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 3, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jul 3, 2026
@TimvdLippe
TimvdLippe added this pull request to the merge queue Jul 3, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 3, 2026
Merged via the queue into servo:main with commit 140917a Jul 3, 2026
34 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 3, 2026
@Narfinger
Narfinger deleted the clippy-cleanup2 branch July 6, 2026 07:21
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.

3 participants