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 2024-03-22 11:48:34 +11:00 committed by GitHub
commit fc637a7bcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,7 @@ where
.create(true)
.read(true)
.write(true)
.truncate(true)
.open(file_path)?;
f.write_all(magic)?;
Ok(Self {