-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the
Context
impl on Option
to turn them into Result
s
This is more concise than calling `ok_or_else` if we are always constructing an anyhow::Error anyway.
- Loading branch information
1 parent
1b53299
commit 3a3e344
Showing
1 changed file
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters