prep v0.7.19

This commit is contained in:
Scott Lamb
2025-01-28 09:25:58 -08:00
parent b4836f3abb
commit 24bbb024ee
4 changed files with 13 additions and 4 deletions

View File

@@ -161,7 +161,8 @@ impl Time {
impl From<SystemTime> for Time {
fn from(tm: SystemTime) -> Self {
Time(tm.0.tv_sec() * TIME_UNITS_PER_SEC + tm.0.tv_nsec() * 9 / 100_000)
#[allow(clippy::unnecessary_cast)]
Time((tm.0.tv_sec() as i64) * TIME_UNITS_PER_SEC + (tm.0.tv_nsec() as i64) * 9 / 100_000)
}
}