From: 志宇 Date: Thu, 21 Mar 2024 23:41:17 +0000 (+0800) Subject: chore(file_store): explicitly state that we truncate file for `create_new` X-Git-Tag: v1.0.0-alpha.8~7^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CommandStringError.html?a=commitdiff_plain;h=ec1c5f4cf86c3039cde43fb53d2abbea83e6a03a;p=bdk chore(file_store): explicitly state that we truncate file for `create_new` This makes clippy happy. --- diff --git a/crates/file_store/src/store.rs b/crates/file_store/src/store.rs index d0f54c4f..3682f003 100644 --- a/crates/file_store/src/store.rs +++ b/crates/file_store/src/store.rs @@ -64,6 +64,7 @@ where .create(true) .read(true) .write(true) + .truncate(true) .open(file_path)?; f.write_all(magic)?; Ok(Self {