mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-26 21:58:10 +01:00
Warn for unwrap in lib
This commit is contained in:
parent
97511b001a
commit
4ff49385f5
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
#![warn(clippy::unwrap_used)]
|
||||
|
||||
pub mod api;
|
||||
pub mod backend;
|
||||
pub mod cli;
|
||||
|
|
|
@ -395,7 +395,9 @@ impl Screencopy {
|
|||
});
|
||||
|
||||
// Notify client about successful copy.
|
||||
let time = UNIX_EPOCH.elapsed().unwrap();
|
||||
let time = UNIX_EPOCH
|
||||
.elapsed()
|
||||
.expect("failed to get time since UNIX_EPOCH");
|
||||
let tv_sec_hi = (time.as_secs() >> 32) as u32;
|
||||
let tv_sec_lo = (time.as_secs() & 0xFFFFFFFF) as u32;
|
||||
let tv_nsec = time.subsec_nanos();
|
||||
|
|
Loading…
Reference in a new issue