Skip to content

Commit

Permalink
Fix OpenOptions clippy (#776)
Browse files Browse the repository at this point in the history
`truncate(false)` is the right choice as we manually truncate later. (we
want to read from the same handle first and then write, to use the
advisory lock)
  • Loading branch information
sholderbach authored Mar 25, 2024
1 parent 6957b5a commit a87a4e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/history/file_backed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ impl History for FileBackedHistory {
.create(true)
.write(true)
.read(true)
.truncate(false)
.open(fname)?,
);
let mut writer_guard = f_lock.write()?;
Expand Down

0 comments on commit a87a4e2

Please sign in to comment.