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 assorted warnings in components/ #31628

Merged
merged 3 commits into from Mar 13, 2024
Merged

Conversation

eerii
Copy link
Contributor

@eerii eerii commented Mar 12, 2024

Continuation to #31500, fixes clippy warnings in the rest of components/ modules (excluding all those in script and the ones about safety comments and result types).

It includes the following allows that seem to be reasonable:

  • upper_case_acronyms: in the case of WGPU I think it looks better and more correct than Wgpu.
  • wrong_self_convention: in compositing/compositor.rs, a function named from_webrender is used to turn WebRenderPipelineId into PipelineId. I can't think of a name that better represents this conversion, if anyone has ideas for this please do say them.
  • large_enum_variant: same as in clippy: Fix warnings in components/constellation #31610

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes are part of Fix as many clippy problems as possible #31500
  • These changes do not require tests because they do not modify functionality, they only fix lint errors.

components/webdriver_server/lib.rs Outdated Show resolved Hide resolved
components/webdriver_server/lib.rs Outdated Show resolved Hide resolved
components/webgpu/lib.rs Outdated Show resolved Hide resolved
@mrobinson mrobinson added this pull request to the merge queue Mar 13, 2024
Merged via the queue into servo:main with commit 03d64d0 Mar 13, 2024
9 checks passed
@eerii eerii deleted the clippy branch March 14, 2024 17:13
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.

None yet

2 participants