pub fn write_file_atomically(path: &Path, text: &str) -> Result<()>Expand description
Write text to path atomically, 0600.
Kept infallible about the temporary file: a failure removes the scratch file and returns the error, leaving the target untouched. That “leaves the target untouched” half is the whole point and is asserted in the tests.