diff --git a/notify/Cargo.toml b/notify/Cargo.toml index b5d8ae49..33b7b155 100644 --- a/notify/Cargo.toml +++ b/notify/Cargo.toml @@ -37,7 +37,7 @@ kqueue = { version = "1.0", optional = true } mio = { version = "0.8", features = ["os-ext"], optional = true } [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.45.0", features = ["Win32_System_Threading", "Win32_Foundation", "Win32_Storage_FileSystem", "Win32_Security", "Win32_System_WindowsProgramming", "Win32_System_IO"] } +windows-sys = { version = "0.48.0", features = ["Win32_System_Threading", "Win32_Foundation", "Win32_Storage_FileSystem", "Win32_Security", "Win32_System_WindowsProgramming", "Win32_System_IO"] } [target.'cfg(any(target_os="freebsd", target_os="openbsd", target_os = "netbsd", target_os = "dragonflybsd"))'.dependencies] kqueue = "^1.0.4" # fix for #344 diff --git a/notify/src/windows.rs b/notify/src/windows.rs index ba0f1df6..65c85147 100644 --- a/notify/src/windows.rs +++ b/notify/src/windows.rs @@ -32,9 +32,8 @@ use windows_sys::Win32::Storage::FileSystem::{ FILE_SHARE_WRITE, OPEN_EXISTING, }; use windows_sys::Win32::System::Threading::{ - CreateSemaphoreW, ReleaseSemaphore, WaitForSingleObjectEx, + CreateSemaphoreW, ReleaseSemaphore, WaitForSingleObjectEx, INFINITE, }; -use windows_sys::Win32::System::WindowsProgramming::INFINITE; use windows_sys::Win32::System::IO::{CancelIo, OVERLAPPED}; const BUF_SIZE: u32 = 16384;