add and apply unused_io_amount clippy lint

This commit is contained in:
auronandace
2026-06-17 13:40:16 +01:00
parent c906030759
commit 05a8954e0a
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -115,6 +115,7 @@ missing_docs = "allow" #TODO: set to deny when all public functions are document
[workspace.lints.clippy]
missing_safety_doc = "warn" #TODO: set to deny when all safety documentation is completed
precedence = "deny"
unused_io_amount = "deny"
[patch.crates-io]
redox_syscall = { git = "https://gitlab.redox-os.org/redox-os/syscall.git" }
+1 -1
View File
@@ -187,7 +187,7 @@ impl<Hw: Hardware> LocalExecutor<Hw> {
if self.intx {
let mut buf = [0_u8; core::mem::size_of::<usize>()];
if (&self.irq_handle).read(&mut buf).unwrap() != 0 {
(&self.irq_handle).write(&buf).unwrap();
(&self.irq_handle).write_all(&buf).unwrap();
}
}
+1 -1
View File
@@ -205,7 +205,7 @@ impl ProducerHandle {
}
pub fn write_event(&mut self, event: orbclient::Event) -> io::Result<()> {
self.0.write(&event)?;
self.0.write_all(&event)?;
Ok(())
}
}