Skip to content

Commit fc637a7

Browse files
authored
Merge pull request #1384 from evanlinjin/file_store_clippy_happy
Explicitly state that we truncate file for `create_new`
2 parents c01983d + ec1c5f4 commit fc637a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/file_store/src/store.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ where
6464
.create(true)
6565
.read(true)
6666
.write(true)
67+
.truncate(true)
6768
.open(file_path)?;
6869
f.write_all(magic)?;
6970
Ok(Self {

0 commit comments

Comments
 (0)