Add track_caller for flex_unwrap in libtock-drivers

This commit is contained in:
Julien Cretin
2022-01-07 16:09:25 +01:00
committed by Julien Cretin
parent 83b2a74ae6
commit ca2ea2007e

View File

@@ -15,6 +15,7 @@ pub type TockResult<T> = Result<T, TockError>;
// 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<T> {
#[track_caller]
fn flex_unwrap(self) -> T;
}