From 228f7591d5a54a666bcacdb7db98c3ca1e34df79 Mon Sep 17 00:00:00 2001 From: Oleksandr Pravdyvyi Date: Thu, 30 Oct 2025 17:23:50 +0200 Subject: [PATCH] fix: lint and fmt --- wallet/src/helperfunctions.rs | 1 + wallet/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wallet/src/helperfunctions.rs b/wallet/src/helperfunctions.rs index e602b02..f959d17 100644 --- a/wallet/src/helperfunctions.rs +++ b/wallet/src/helperfunctions.rs @@ -73,6 +73,7 @@ pub async fn fetch_config() -> Result { let mut file = tokio::fs::OpenOptions::new() .write(true) .create(true) + .truncate(true) .open(config_home.join("wallet_config.json")) .await?; diff --git a/wallet/src/lib.rs b/wallet/src/lib.rs index bfc2e54..500ec45 100644 --- a/wallet/src/lib.rs +++ b/wallet/src/lib.rs @@ -217,7 +217,7 @@ pub enum Command { /// match the remote versions CheckHealth {}, /// Command to explicitly setup config and storage - /// + /// /// Does nothing in case if both already present Setup {}, }