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_map_or lint #621

Merged
merged 1 commit into from
Nov 17, 2024
Merged

Clippy: fix unnecessary_map_or lint #621

merged 1 commit into from
Nov 17, 2024

Conversation

asomers
Copy link
Owner

@asomers asomers commented Nov 17, 2024

Replace Option::map_or(false, ...) with Option::is_some_and, new in Rust 1.70.0 .

Replace Option::map_or(false, ...) with Option::is_some_and, new in Rust
1.70.0 .
@asomers asomers merged commit dee7bcb into master Nov 17, 2024
3 checks passed
@asomers asomers deleted the is_some_and branch November 17, 2024 18:41
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.

1 participant