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

Refactor: use if let instead of for on Options #4934

Merged
merged 2 commits into from
Aug 26, 2024
Merged

Conversation

rustbasic
Copy link
Contributor

This is recommended by rust-analyzer

It might be a good idea to fix this to appease rust-analyzer.

Copy link
Contributor

@bircni bircni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since these are Options, an if let would make more sense

@rustbasic rustbasic requested a review from emilk August 26, 2024 13:11
@emilk emilk changed the title This is recommended by rust-analyzer Refactor: use if let instead of for on Options Aug 26, 2024
@emilk emilk merged commit 555ea9f into emilk:master Aug 26, 2024
20 of 23 checks passed
486c pushed a commit to 486c/egui that referenced this pull request Oct 9, 2024
This is recommended by `rust-analyzer`

It might be a good idea to fix this to appease `rust-analyzer`.
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
This is recommended by `rust-analyzer`

It might be a good idea to fix this to appease `rust-analyzer`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants