use unwrap

This commit is contained in:
Zomatree
2021-09-07 15:57:38 +01:00
parent fc5d14d4aa
commit b99807cf2a

View File

@@ -8,7 +8,7 @@ use std::sync::{Arc, Mutex};
#[inline]
fn now() -> f64 {
// will this ever actually panic?
time::SystemTime::now().duration_since(time::SystemTime::UNIX_EPOCH).expect("???").as_secs_f64()
time::SystemTime::now().duration_since(time::SystemTime::UNIX_EPOCH).unwrap().as_secs_f64()
}
struct Ratelimit {