From 2f5e3150eec59c0f6d27b78c74c0cb9c7c79e98d Mon Sep 17 00:00:00 2001 From: Martin HEBANT Date: Tue, 13 Jun 2023 23:29:40 +0200 Subject: [PATCH] Impl str::error::Error for Error --- src/error.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/error.rs b/src/error.rs index 8fe2c282..b99ea1e5 100644 --- a/src/error.rs +++ b/src/error.rs @@ -177,6 +177,8 @@ impl fmt::Display for Error { } } +impl std::error::Error for Error {} + #[inline] pub fn result(code: ErrorCode, r: Result) -> Result