summaryrefslogtreecommitdiff
path: root/src/files.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2017-05-13 21:01:14 +0200
committerJustin Worthe <justin.worthe@gmail.com>2017-05-13 21:01:14 +0200
commit872529bc9a13b1923047a7f9308abaa40eb63d3c (patch)
tree9da73efa835896ee206daeb262fde550aaa99907 /src/files.rs
parent36b72bfef7b7b8dea94546d11704ec529091bce1 (diff)
Random placement
Diffstat (limited to 'src/files.rs')
-rw-r--r--src/files.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/files.rs b/src/files.rs
index 87d295f..99dca8c 100644
--- a/src/files.rs
+++ b/src/files.rs
@@ -27,6 +27,9 @@ pub fn write_action(working_dir: &PathBuf, is_place_phase: bool, action: Action)
let full_filename = working_dir.join(filename);
let mut file = File::create(full_filename.as_path()).map_err(|e| e.to_string())?;
- writeln!(file, "{}", action).map_err(|e| e.to_string())?;
+ write!(file, "{}", action).map_err(|e| e.to_string())?;
+
+ println!("Making move: {}", action);
+
Ok(())
}