mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 05:26:59 +00:00
use unwrap
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user