From 35b145bd0ca721b5926e36f047eec8e1060372c0 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Thu, 4 May 2023 09:01:39 +0200 Subject: [PATCH] Add `#[track_caller]` to `LocalResult::unwrap` --- src/offset/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/offset/mod.rs b/src/offset/mod.rs index 5267ae4ce2..ee1fe7e233 100644 --- a/src/offset/mod.rs +++ b/src/offset/mod.rs @@ -191,6 +191,7 @@ impl LocalResult> { impl LocalResult { /// Returns the single unique conversion result, or panics accordingly. #[must_use] + #[track_caller] pub fn unwrap(self) -> T { match self { LocalResult::None => panic!("No such local time"),