lint: fix a few Clippy errors

PR #3151
This commit is contained in:
Lucas Trzesniewski
2025-09-21 15:15:48 +02:00
committed by GitHub
parent bb8172fe9b
commit a7b7d81d66
4 changed files with 5 additions and 5 deletions

View File

@@ -571,7 +571,7 @@ impl<W: io::Write> JSON<W> {
} else {
json::to_writer(&mut self.wtr, message)?;
}
self.wtr.write(&[b'\n'])?;
let _ = self.wtr.write(b"\n")?; // This will always be Ok(1) when successful.
Ok(())
}
}