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 iter_cloned_collect warning in components/script #32053

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

oluwatobiss
Copy link
Contributor

Replace the .iter().cloned().collect() call with .to_vec() to fix the iter_cloned_collect warning.

ref: https://rust-lang.github.io/rust-clippy/master/index.html#iter_cloned_collect


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix Fix as many clippy problems as possible #31500
  • These changes do not require tests because they only resolve clippy warnings. They do not change functionalities.

@jdm jdm added this pull request to the merge queue Apr 11, 2024
Merged via the queue into servo:main with commit 9db9ddd Apr 11, 2024
9 checks passed
@oluwatobiss oluwatobiss deleted the clippy/fix-iter-cloned-collect-warning branch April 18, 2024 21:01
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.

Fix as many clippy problems as possible
2 participants