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