Skip to content

Commit

Permalink
Only implement Error if std feature is enabled.
Browse files Browse the repository at this point in the history
This should rightfully have been caught by the CI in the original PR,
but alas it was not. My bad for not seeing it manually.

See rust-lang/rust#53166 for issue on this
kind of mistake not causing an error like it used to.
  • Loading branch information
daboross committed Oct 11, 2018
1 parent b4d3c24 commit 738aa2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,7 @@ where
}
}

#[cfg(feature = "std")]
impl<E> std::error::Error for Error<E>
where
E: std::error::Error
Expand Down

0 comments on commit 738aa2b

Please sign in to comment.