Skip to content

Simplify a lot of unwrap_or usages#850

Merged
reese merged 1 commit intotrunkfrom
reese-unwrap-or
Mar 22, 2026
Merged

Simplify a lot of unwrap_or usages#850
reese merged 1 commit intotrunkfrom
reese-unwrap-or

Conversation

@reese
Copy link
Copy Markdown
Collaborator

@reese reese commented Mar 22, 2026

There's a ton of places where we use .unwrap_or(true) and .unwrap_or(false), but there's slightly more terse/readable alternatives to these like is_some_and and is_none_or that we could use instead.

@reese reese merged commit 9853bef into trunk Mar 22, 2026
8 checks passed
@reese reese deleted the reese-unwrap-or branch March 22, 2026 22:54
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.

2 participants