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 needless_late_init warning in components/script #32052

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

oluwatobiss
Copy link
Contributor

Merge late variable initialization with its let statement to fix the needless_late_init warning.

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


  • ./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 e3ad76d Apr 11, 2024
9 checks passed
@oluwatobiss oluwatobiss deleted the clippy/fix-needless-late-init-warning branch April 18, 2024 20:58
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