From c373ad327e7ae8daddee00f1043df94765c3a742 Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Mon, 6 Feb 2023 09:06:19 -0500 Subject: [PATCH] Add missing #[track_caller] --- src/explain.rs | 2 ++ 1 file changed, 2 insertions(+) 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))