Skip to content

Convert unwrap_or to unwrap_or_else#1

Open
Lucretiel wants to merge 1 commit intoslog-rs:masterfrom
Lucretiel:patch-1
Open

Convert unwrap_or to unwrap_or_else#1
Lucretiel wants to merge 1 commit intoslog-rs:masterfrom
Lucretiel:patch-1

Conversation

@Lucretiel
Copy link

It's generally seen as better to use unwrap_or_else to prevent creating objects unnecessarily when unwrapping Options

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