Skip to content

Commit

Permalink
Close file before rename
Browse files Browse the repository at this point in the history
  • Loading branch information
andreacorbellini committed Apr 9, 2024
1 parent cf2d13e commit b9ecc02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,6 @@ fn named_temp_file() -> Result<()> {
dbg!(path);
let atomic = AtomicWriteFile::open(path)?;
dbg!(&atomic);
drop(file);
atomic.commit()
}

0 comments on commit b9ecc02

Please sign in to comment.