-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
map_err()
conversions with a From
call via the Try
oper…
…ator The `?` or `Try` operator in the standard library calls `.into()` on the `Error` type before bubbling it up, allowing for natural conversions to other error types. `thiserror` supports marking such errors as `#[from]` (implying `#[source]`) to generate the necessary `From<>` implementation to facilitate automatic conversion from any specified `Error` type to the corresponding enum variant in our `thiserror` enums.
- Loading branch information
Showing
1 changed file
with
21 additions
and
45 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