-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ic-asset): Use concrete types rather than anyhow (#3191)
Replace use of `anyhow` in the `ic-asset` crate with concrete error types. Fixes https://dfinity.atlassian.net/browse/SDK-869 Regarding this note from https://mmapped.blog/posts/12-rust-error-handling.html, I gave it a shot. So far I think it turned out better than I expected. > Feel free to introduce distinct error types for each function you implement. I am still looking for Rust code that went overboard with distinct error types.
- Loading branch information
1 parent
891055d
commit 1a1fd8f
Showing
39 changed files
with
474 additions
and
174 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#[derive(Clone, Debug)] | ||
pub enum ContentEncoder { | ||
Gzip, | ||
} | ||
|
Oops, something went wrong.