Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Dec 23, 2021
1 parent c43cda1 commit 55de2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flussab/src/byte_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl<'a> ByteWriter<'a> {
// Silently discard data if we errored before but haven't reported it yet
if self.io_error.is_none() {
self.panicked = true;
if let Err(err) = self.write.write_all(&buf) {
if let Err(err) = self.write.write_all(buf) {
self.io_error = Some(err);
}
self.panicked = false;
Expand Down

0 comments on commit 55de2de

Please sign in to comment.