From d64d80d20a429be2d672ad562093d83a6728da20 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 12 Dec 2018 11:23:04 +0100 Subject: [PATCH] add comment --- src/tools.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools.rs b/src/tools.rs index a6113cdf..4abafeec 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -14,6 +14,8 @@ pub fn file_set_contents>( 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) {