diff --git a/rama-utils/src/macros/error.rs b/rama-utils/src/macros/error.rs index 3833fb34..e453ba76 100644 --- a/rama-utils/src/macros/error.rs +++ b/rama-utils/src/macros/error.rs @@ -25,7 +25,11 @@ macro_rules! __static_str_error { } } - impl std::error::Error for $name {} + impl std::error::Error for $name { + fn source(&self) -> Option<&(dyn std::error::Error + 'static)> { + Some(self) + } + } } } #[doc(inline)]