Merge pull request #3 from gahag-cw/main

Impl std::error::error for Error
This commit is contained in:
Nicolas Stalder
2023-02-07 02:22:54 +01:00
committed by GitHub
+3
View File
@@ -62,6 +62,9 @@ impl fmt::Display for Error {
}
}
#[cfg(feature = "std")]
impl std::error::Error for Error {}
impl From<ErrorKind> for Error {
fn from(kind: ErrorKind) -> Error {
Error {