diff --git a/src/util/error.rs b/src/util/error.rs index 1366520..9e0a8ef 100644 --- a/src/util/error.rs +++ b/src/util/error.rs @@ -245,10 +245,10 @@ impl Contextualize> for Option { } } -impl> Contextualize for E { +impl> Contextualize> for E { #[track_caller] - fn err_context(self, context: impl Into) -> Error { - self.into().with_context(context) + fn err_context(self, context: impl Into) -> Result { + Err(self.into().with_context(context)) } }