Merge pull request #1384 from evanlinjin/file_store_clippy_happy

Explicitly state that we truncate file for `create_new`
This commit is contained in:
Lloyd Fournier authored and GitHub committed 2024-03-22 11:48:34 +11:00
commit fc637a7bcc
1 file changed
+1
+1
View File
@@ -64,6 +64,7 @@ where
.create(true)
.read(true)
.write(true)
.truncate(true)
.open(file_path)?;
f.write_all(magic)?;
Ok(Self {