Add missing #[track_caller]
This commit is contained in:
parent
60df0085b8
commit
c373ad327e
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue