-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(workspace): Migrate back to
thiserror
v2 (#811)
* chore(workspace): Migrate back to `thiserror` v2 * fmt + lint * remove EVMError `#[from]`
- Loading branch information
Showing
24 changed files
with
196 additions
and
399 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
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,11 +1,11 @@ | ||
//! Errors for the `kona-common` crate. | ||
use thiserror::Error; | ||
|
||
/// An error that can occur when reading from or writing to a file descriptor. | ||
#[derive(derive_more::Display, Debug, PartialEq, Eq)] | ||
#[display("IO error (errno: {_0})")] | ||
#[derive(Error, Debug, PartialEq, Eq)] | ||
#[error("IO error (errno: {_0})")] | ||
pub struct IOError(pub i32); | ||
|
||
impl core::error::Error for IOError {} | ||
|
||
/// A [Result] type for the [IOError]. | ||
pub type IOResult<T> = Result<T, IOError>; |
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
Oops, something went wrong.