From 608c192805b7ebc1f4c6f4dbf58cfc9e0a688eee Mon Sep 17 00:00:00 2001 From: LastExceed Date: Sat, 17 Feb 2024 20:26:33 +0100 Subject: [PATCH] add safety comment to an .unwrap() --- src/utils/booking.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/booking.rs b/src/utils/booking.rs index a587b1f..1fbddae 100644 --- a/src/utils/booking.rs +++ b/src/utils/booking.rs @@ -32,7 +32,7 @@ impl Booking { self.runtime_accumulator += self .currently_running_since .take() - .unwrap() + .unwrap() //SAFETY: guaranteed by .is_running() .elapsed(); }