From 552120a68a79f086492b3f663421153c1e672c53 Mon Sep 17 00:00:00 2001 From: Manuel <2084639+tennox@users.noreply.github.com> Date: Tue, 13 Jun 2023 01:35:28 +0100 Subject: [PATCH] fix: writing config does not truncate (#55) Co-authored-by: Manu [tennox] --- client/src/config.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/client/src/config.rs b/client/src/config.rs index 9ca727f..254c155 100644 --- a/client/src/config.rs +++ b/client/src/config.rs @@ -93,6 +93,7 @@ impl Config { let mut file = OpenOptions::new() .create(true) .write(true) + .truncate(true) .mode(FILE_MODE) .open(path)?;