Impl std::error::error for Error

This commit is contained in:
Gabriel Bastos
2023-02-06 11:12:52 -03:00
parent 825eba57df
commit 3096e6ecc1
+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 {