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

View File

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