We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b571f commit db6d841Copy full SHA for db6d841
examples/create_test_file.rs
@@ -14,14 +14,14 @@ impl Writer {
14
}
15
16
fn section(&mut self, title: &str) -> Result<()> {
17
- self.file.write(&vec![0x42; 10])?;
18
- self.file.write(title.as_bytes())?;
19
+ self.file.write_all(&vec![0x42; 10])?;
+ self.file.write_all(title.as_bytes())?;
20
Ok(())
21
22
23
fn add(&mut self, buf: &[u8]) -> Result<()> {
24
- self.file.write(buf)?;
+ self.file.write_all(buf)?;
25
26
27
0 commit comments