From ca2ea2007e4673be26bccb4ce247324cc7bc5d5a Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Fri, 7 Jan 2022 16:09:25 +0100 Subject: [PATCH] Add track_caller for flex_unwrap in libtock-drivers --- third_party/libtock-drivers/src/result.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/libtock-drivers/src/result.rs b/third_party/libtock-drivers/src/result.rs index 5021c3a..160f1cb 100644 --- a/third_party/libtock-drivers/src/result.rs +++ b/third_party/libtock-drivers/src/result.rs @@ -15,6 +15,7 @@ pub type TockResult = Result; // This trait allows to flexibly use `Result::unwrap` or `Option::unwrap` and is configured to do // so depending on the `debug_ctap` feature. pub trait FlexUnwrap { + #[track_caller] fn flex_unwrap(self) -> T; }