Skip to content

Commit caef136

Browse files
authored
make clippy happy (#6930)
1 parent 7147485 commit caef136

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/test-utils/src/fd_lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn new_lock(lock_path: impl AsRef<Path>) -> RwLock<File> {
1313
fn new_lock(lock_path: &Path) -> RwLock<File> {
1414
let lock_file = pretty_err(
1515
lock_path,
16-
OpenOptions::new().read(true).write(true).create(true).open(lock_path),
16+
OpenOptions::new().read(true).write(true).create(true).truncate(false).open(lock_path),
1717
);
1818
RwLock::new(lock_file)
1919
}

0 commit comments

Comments
 (0)