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 unnecessary_lazy_evaluations warnings in components #31898

Conversation

oluwatobiss
Copy link
Contributor

@oluwatobiss oluwatobiss commented Mar 27, 2024

Change ok_or_else(...) to ok_or(...) to fix the unnecessary_lazy_evaluations warnings.

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


  • ./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 only resolve clippy warnings. They do not change functionalities.

@mrobinson mrobinson added this pull request to the merge queue Mar 27, 2024
Merged via the queue into servo:main with commit 773e881 Mar 27, 2024
10 checks passed
ektuu pushed a commit to ektuu/servo that referenced this pull request Mar 28, 2024
MunishMummadi pushed a commit to MunishMummadi/servo that referenced this pull request Mar 29, 2024
@oluwatobiss oluwatobiss deleted the clippy/fix-unnecessary-lazy-evaluations-warnings branch April 1, 2024 16:36
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