add comment

This commit is contained in:
Dietmar Maurer 2018-12-12 11:23:04 +01:00
parent 5ba6968922
commit d64d80d20a
1 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,8 @@ pub fn file_set_contents<P: AsRef<Path>>(
let path = path.as_ref();
// Note: we use mkstemp heŕe, because this worka with different
// processes, threads, and even tokio tasks.
let mut template = path.to_owned();
template.set_extension("tmp_XXXXXX");
let (fd, tmp_path) = match unistd::mkstemp(&template) {