add safety comment to an .unwrap()

This commit is contained in:
LastExceed 2024-02-17 20:26:33 +01:00
parent 12a99a28b1
commit 608c192805

View File

@ -32,7 +32,7 @@ impl Booking {
self.runtime_accumulator += self
.currently_running_since
.take()
.unwrap()
.unwrap() //SAFETY: guaranteed by .is_running()
.elapsed();
}