Add track_caller for flex_unwrap in libtock-drivers
This commit is contained in:
committed by
Julien Cretin
parent
83b2a74ae6
commit
ca2ea2007e
1
third_party/libtock-drivers/src/result.rs
vendored
1
third_party/libtock-drivers/src/result.rs
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user