diff --git a/src/explain.rs b/src/explain.rs index b9cdc4c..1fdcaf3 100644 --- a/src/explain.rs +++ b/src/explain.rs @@ -19,6 +19,7 @@ where type Output = Result<::T, How>; #[inline(always)] + #[track_caller] fn context(self, context: impl IntoContext) -> Self::Output { self.into_result_how().map_err(#[inline(never)] move |e| e.context(context)) } @@ -31,6 +32,7 @@ where type Output = Result<::T, How>; #[inline(always)] + #[track_caller] fn context(self, context: impl IntoContext) -> Self::Output { // TODO: maybe add a toggle for the extra "Option::None" context //Err(How::new(context))