mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-20 09:56:07 -05:00
clean up some clippy warnings
This commit is contained in:
@@ -3,7 +3,7 @@ name = "moonfire-base"
|
||||
version = "0.0.1"
|
||||
authors = ["Scott Lamb <slamb@slamb.org>"]
|
||||
readme = "../README.md"
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
license-file = "../../LICENSE.txt"
|
||||
|
||||
[features]
|
||||
|
||||
@@ -71,7 +71,7 @@ impl RealClocks {
|
||||
let mut ts = mem::MaybeUninit::uninit();
|
||||
assert_eq!(0, libc::clock_gettime(clock, ts.as_mut_ptr()));
|
||||
let ts = ts.assume_init();
|
||||
Timespec::new(ts.tv_sec as i64, ts.tv_nsec as i32)
|
||||
Timespec::new(ts.tv_sec, ts.tv_nsec as i32)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user