From 60df0085b873a2435d149d8d62b098a4c50c4bf2 Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Thu, 26 Jan 2023 20:51:33 -0500 Subject: [PATCH] Add some #[track_caller] --- src/into.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/into.rs b/src/into.rs index 8899f8b..42b9fe0 100644 --- a/src/into.rs +++ b/src/into.rs @@ -20,8 +20,10 @@ where type T = T; #[inline(always)] + #[track_caller] fn into_result_how(self) -> Result { #[inline(never)] + #[track_caller] fn into(e: E) -> How { How::new(e.to_string()) } @@ -42,8 +44,10 @@ impl IntoResultHow for Option { type T = T; #[inline(always)] + #[track_caller] fn into_result_how(self) -> Result { #[inline(never)] + #[track_caller] fn into() -> How { How::new("Option::None") }