From ec1c5f4cf86c3039cde43fb53d2abbea83e6a03a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=97=E5=AE=87?= Date: Fri, 22 Mar 2024 07:41:17 +0800 Subject: [PATCH] chore(file_store): explicitly state that we truncate file for `create_new` This makes clippy happy. --- crates/file_store/src/store.rs | 1 + 1 file changed, 1 insertion(+) 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 {