Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Oct 13, 2023
1 parent bb6ff72 commit 6bfba22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sdk/src/types/block/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ pub enum Error {
Fallback(FallbackError),
}

#[cfg(feature = "std")]
impl std::error::Error for Error {}

impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Expand Down Expand Up @@ -391,9 +394,6 @@ impl From<Infallible> for Error {
}
}

#[cfg(feature = "std")]
impl std::error::Error for Error {}

#[cfg(feature = "std")]
#[derive(Debug)]
pub struct FallbackError(pub(crate) Box<dyn std::error::Error + Send + Sync>);
Expand Down

0 comments on commit 6bfba22

Please sign in to comment.