-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ndk/media_error: Flatten
MediaStatus
and MediaError
with `catch_a…
…ll` (#432) Since bumping our MSRV to 1.66 `num_enum` provides a `catch_all` variant which we can use to store yet-unknown or yet-unmapped error codes, rather than having them in a secondary `enum` which derives `thiserror`. This also allows us to get rid of a manual `match` statement, which can be (but could already have been...) generated by `num_enum` via `TryFromPrimitive` before.
- Loading branch information
Showing
3 changed files
with
24 additions
and
54 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
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
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