forked from jmug/stoatchat
use unwrap
This commit is contained in:
@@ -8,7 +8,7 @@ use std::sync::{Arc, Mutex};
|
|||||||
#[inline]
|
#[inline]
|
||||||
fn now() -> f64 {
|
fn now() -> f64 {
|
||||||
// will this ever actually panic?
|
// 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 {
|
struct Ratelimit {
|
||||||
|
|||||||
Reference in New Issue
Block a user