Skip to content

Commit d72e438

Browse files
authored
fix: windows build (#11465)
1 parent 6c16df2 commit d72e438

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/fs-util/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ where
307307
F: FnOnce(&mut File) -> std::result::Result<(), E>,
308308
E: Into<Box<dyn core::error::Error + Send + Sync>>,
309309
{
310+
#[cfg(windows)]
311+
use std::os::windows::fs::OpenOptionsExt;
312+
310313
let mut tmp_path = file_path.to_path_buf();
311314
tmp_path.set_extension("tmp");
312315

0 commit comments

Comments
 (0)