add unused_must_use lint
This commit is contained in:
+1
-1
@@ -40,7 +40,7 @@ impl Barrier {
|
||||
if guard.count == self.original_count.get() {
|
||||
guard.gen_id = guard.gen_id.wrapping_add(1);
|
||||
guard.count = 0;
|
||||
self.cvar.broadcast();
|
||||
if let Ok(()) = self.cvar.broadcast() {}; // TODO handle error
|
||||
|
||||
drop(guard);
|
||||
|
||||
|
||||
+2
-3
@@ -137,11 +137,10 @@ pub fn rttime() -> timespec {
|
||||
unsafe {
|
||||
let mut time = MaybeUninit::uninit();
|
||||
|
||||
// TODO: Handle error
|
||||
Sys::clock_gettime(
|
||||
if let Ok(()) = Sys::clock_gettime(
|
||||
crate::header::time::CLOCK_REALTIME,
|
||||
Out::from_uninit_mut(&mut time),
|
||||
);
|
||||
) {}; // TODO handle error
|
||||
|
||||
time.assume_init()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user