We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7147485 commit caef136Copy full SHA for caef136
crates/test-utils/src/fd_lock.rs
@@ -13,7 +13,7 @@ pub fn new_lock(lock_path: impl AsRef<Path>) -> RwLock<File> {
13
fn new_lock(lock_path: &Path) -> RwLock<File> {
14
let lock_file = pretty_err(
15
lock_path,
16
- OpenOptions::new().read(true).write(true).create(true).open(lock_path),
+ OpenOptions::new().read(true).write(true).create(true).truncate(false).open(lock_path),
17
);
18
RwLock::new(lock_file)
19
}
0 commit comments