mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: windows build (#11465)
This commit is contained in:
@ -307,6 +307,9 @@ where
|
||||
F: FnOnce(&mut File) -> std::result::Result<(), E>,
|
||||
E: Into<Box<dyn core::error::Error + Send + Sync>>,
|
||||
{
|
||||
#[cfg(windows)]
|
||||
use std::os::windows::fs::OpenOptionsExt;
|
||||
|
||||
let mut tmp_path = file_path.to_path_buf();
|
||||
tmp_path.set_extension("tmp");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user