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

Add missing Option::orElse method #476

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

veewee
Copy link
Collaborator

@veewee veewee commented May 29, 2024

The Option::or() method states

     * @note:   Arguments passed to `Option::or()` are eagerly evaluated;
     *          if you are passing the result of a function call, it is recommended to use `Option::orElse()`, which is lazily evaluated.

But there is no Option::orElse() method.

Now there is!

@coveralls
Copy link

Pull Request Test Coverage Report for Build 9284818135

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.001%) to 97.228%

Totals Coverage Status
Change from base Build 9280518076: 0.001%
Covered Lines: 5016
Relevant Lines: 5159

💛 - Coveralls

@azjezz azjezz merged commit 99a1dd6 into azjezz:next May 29, 2024
12 of 14 checks passed
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.

3 participants