clippy: write -> write_all
This commit is contained in:
parent
c73cf2e328
commit
1d906ff67c
1 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ impl LineWriter {
|
||||||
self.file
|
self.file
|
||||||
.write_all(self.buffer.join("\n").as_bytes())
|
.write_all(self.buffer.join("\n").as_bytes())
|
||||||
.unwrap();
|
.unwrap();
|
||||||
self.file.write(b"\n").unwrap();
|
self.file.write_all(b"\n").unwrap();
|
||||||
} else {
|
} else {
|
||||||
// println!("taking the append option");
|
// println!("taking the append option");
|
||||||
// println!("Writing {:?} to line {}", data, line);
|
// 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
|
// we have to use one more than the range we want for the
|
||||||
// end
|
// end
|
||||||
// println!("selected buffer: {:?}", to_write);
|
// println!("selected buffer: {:?}", to_write);
|
||||||
self.file.write(to_write.as_bytes()).unwrap();
|
self.file.write_all(to_write.as_bytes()).unwrap();
|
||||||
self.file.write(b"\n").unwrap();
|
self.file.write_all(b"\n").unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
self.last_line = line;
|
self.last_line = line;
|
||||||
|
|
Loading…
Reference in a new issue