clippy: write -> write_all

This commit is contained in:
Graham Christensen 2019-01-02 19:44:30 -05:00
parent c73cf2e328
commit 1d906ff67c
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -54,7 +54,7 @@ impl LineWriter {
self.file
.write_all(self.buffer.join("\n").as_bytes())
.unwrap();
self.file.write(b"\n").unwrap();
self.file.write_all(b"\n").unwrap();
} else {
// println!("taking the append option");
// println!("Writing {:?} to line {}", data, line);
@ -69,8 +69,8 @@ impl LineWriter {
// we have to use one more than the range we want for the
// end
// println!("selected buffer: {:?}", to_write);
self.file.write(to_write.as_bytes()).unwrap();
self.file.write(b"\n").unwrap();
self.file.write_all(to_write.as_bytes()).unwrap();
self.file.write_all(b"\n").unwrap();
}
self.last_line = line;