From 5aaa10538b03a52c035e49bf2594c9e1cf156f12 Mon Sep 17 00:00:00 2001 From: Love Billenius Date: Tue, 7 Jan 2025 15:54:19 +0100 Subject: [PATCH] Correct openoptions --- src/cache.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cache.rs b/src/cache.rs index 823a033..36326d0 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -62,12 +62,11 @@ impl Cache { .context("Failed to get config home")? .get_config_path()?; fs::create_dir_all(&config_path)?; - eprintln!("Config dir: {}", &config_path.display()); config_path.push(FILE_NAME); - eprintln!("File to write: {}", &config_path.display()); let file = fs::File::options() + .write(true) .create(true) .truncate(true) .open(&config_path)?;