Add missing #[track_caller]

This commit is contained in:
Michael Pfaff 2023-02-06 09:06:19 -05:00
parent 60df0085b8
commit c373ad327e
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,7 @@ where
type Output = Result<<Self as IntoResultHow>::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<<Self as IntoResultHow>::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))