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
+2 -2
View File
@@ -108,14 +108,14 @@ impl FileWriter {
impl fmt::Write for FileWriter {
fn write_str(&mut self, s: &str) -> fmt::Result {
self.write(s.as_bytes());
if let Ok(()) = self.write(s.as_bytes()) {}; // TODO handle error
Ok(())
}
}
impl WriteByte for FileWriter {
fn write_u8(&mut self, byte: u8) -> fmt::Result {
self.write(&[byte]);
if let Ok(()) = self.write(&[byte]) {}; // TODO handle error
Ok(())
}
}