add unused_must_use lint

This commit is contained in:
auronandace
2026-02-11 09:48:47 +00:00
parent 395c6ba33b
commit a3c67e898d
18 changed files with 43 additions and 43 deletions
+1 -1
View File
@@ -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
View File
@@ -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()
}