diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-07-17 19:43:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-17 19:43:40 -0700 |
commit | bf9c08b705725bf35b60fb8a468edbc35ba3cdde (patch) | |
tree | 347996eea1af4a4d70601273a1a04e9462b1c0d8 /ext/node | |
parent | f1228454450c320c8dce1a6968890aa7d807906f (diff) |
fix(ext/node): stat.mode on windows (#24434)
Diffstat (limited to 'ext/node')
-rw-r--r-- | ext/node/ops/os/cpus.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/node/ops/os/cpus.rs b/ext/node/ops/os/cpus.rs index 9de4f1ff3..7515bae8b 100644 --- a/ext/node/ops/os/cpus.rs +++ b/ext/node/ops/os/cpus.rs @@ -122,8 +122,8 @@ pub fn cpu_info() -> Option<Vec<CpuInfo>> { #[cfg(target_os = "windows")] pub fn cpu_info() -> Option<Vec<CpuInfo>> { - use windows_sys::Win32::System::WindowsProgramming::NtQuerySystemInformation; - use windows_sys::Win32::System::WindowsProgramming::SystemProcessorPerformanceInformation; + use windows_sys::Wdk::System::SystemInformation::NtQuerySystemInformation; + use windows_sys::Wdk::System::SystemInformation::SystemProcessorPerformanceInformation; use windows_sys::Win32::System::WindowsProgramming::SYSTEM_PROCESSOR_PERFORMANCE_INFORMATION; use std::os::windows::ffi::OsStrExt; |