add and apply unused_io_amount clippy lint
This commit is contained in:
@@ -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" }
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user