From f159e124005d6bdc5d4ebe99ff300e8ae5ce7d24 Mon Sep 17 00:00:00 2001 From: Ethan Girouard Date: Sun, 21 Jun 2026 13:51:12 -0400 Subject: [PATCH] Contextualize error into result instead of error --- src/util/error.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) } }