diff --git a/src/lib.rs b/src/lib.rs index b6e42c4..9523dfb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -687,6 +687,7 @@ impl CtOption { /// /// Panics if the value is none with a custom panic message provided by /// `msg`. + #[track_caller] pub fn expect(self, msg: &str) -> T { assert_eq!(self.is_some.unwrap_u8(), 1, "{}", msg);