mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2026-02-09 12:34:39 -05:00
resolve almost all as_conversions lints
may need further opinion from others on these Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
68dc9f60b9
commit
310aec7c58
18 changed files with 144 additions and 85 deletions
|
|
@ -21,6 +21,7 @@ use crate::{services, Error, Result};
|
|||
|
||||
pub(crate) fn clamp<T: Ord>(val: T, min: T, max: T) -> T { cmp::min(cmp::max(val, min), max) }
|
||||
|
||||
#[allow(clippy::as_conversions)]
|
||||
pub(crate) fn millis_since_unix_epoch() -> u64 {
|
||||
SystemTime::now()
|
||||
.duration_since(UNIX_EPOCH)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue