Skip to content

Commit

Permalink
chore: specify truncate mode of openning file explictly
Browse files Browse the repository at this point in the history
  • Loading branch information
ethe committed Jul 22, 2024
1 parent 96947e1 commit 33b8da5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fs/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ impl FileProvider for TokioExecutor {

async fn open(path: impl AsRef<Path>) -> io::Result<Self::File> {
OpenOptions::new()
.truncate(false)
.create(true)
.write(true)
.read(true)
Expand Down

0 comments on commit 33b8da5

Please sign in to comment.