From d7d75eb0fae54017bdd2837fca7fab78a83519fb Mon Sep 17 00:00:00 2001 From: maddymakesgames Date: Fri, 22 Mar 2024 11:08:38 -0400 Subject: [PATCH] even if sometimes we can get annoyed with our friends --- cli/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index aee6dd6..ba0fb44 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -75,7 +75,12 @@ fn merge_saves(args: Vec, verbose: bool) -> Option<()> { save_a.merge_data(&save_b); let out_path = &args[2]; - let mut out_file = match OpenOptions::new().create(true).write(true).open(out_path) { + let mut out_file = match OpenOptions::new() + .create(true) + .truncate(true) + .write(true) + .open(out_path) + { Ok(f) => f, Err(ref e) => { match e.kind() {