We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8be818 commit ae3beadCopy full SHA for ae3bead
example/build.rs
@@ -80,7 +80,7 @@ fn replace_text_in_file(file_name: &str, from: &str, to: &str) -> Result<(), std
80
let new_contents = contents.replace(from, to);
81
82
let mut dst = File::create(file_name)?;
83
- dst.write(new_contents.as_bytes())?;
+ dst.write_all(new_contents.as_bytes())?;
84
85
Ok(())
86
}
0 commit comments