Skip to content

Commit c0eda79

Browse files
committed
Bump windows-sys to version 0.61
1 parent b48586f commit c0eda79

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

tokio/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ libc = { version = "0.2.168" }
127127
nix = { version = "0.29.0", default-features = false, features = ["aio", "fs", "socket"] }
128128

129129
[target.'cfg(windows)'.dependencies.windows-sys]
130-
version = "0.59"
130+
version = "0.61"
131131
optional = true
132132

133133
[target.'cfg(windows)'.dev-dependencies.windows-sys]
134-
version = "0.59"
134+
version = "0.61"
135135
features = [
136136
"Win32_Foundation",
137137
"Win32_Security_Authorization",

tokio/src/process/windows.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ use std::sync::Arc;
3333
use std::task::{Context, Poll};
3434

3535
use windows_sys::{
36-
Win32::Foundation::{
37-
DuplicateHandle, BOOLEAN, DUPLICATE_SAME_ACCESS, HANDLE, INVALID_HANDLE_VALUE,
38-
},
36+
Win32::Foundation::{DuplicateHandle, DUPLICATE_SAME_ACCESS, HANDLE, INVALID_HANDLE_VALUE},
3937
Win32::System::Threading::{
4038
GetCurrentProcess, RegisterWaitForSingleObject, UnregisterWaitEx, INFINITE,
4139
WT_EXECUTEINWAITTHREAD, WT_EXECUTEONLYONCE,
@@ -163,7 +161,7 @@ impl Drop for Waiting {
163161
}
164162
}
165163

166-
unsafe extern "system" fn callback(ptr: *mut std::ffi::c_void, _timer_fired: BOOLEAN) {
164+
unsafe extern "system" fn callback(ptr: *mut std::ffi::c_void, _timer_fired: bool) {
167165
let complete = &mut *(ptr as *mut Option<oneshot::Sender<()>>);
168166
let _ = complete.take().unwrap().send(());
169167
}

tokio/src/signal/windows/sys.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::sync::Once;
44
use crate::signal::registry::{globals, EventId, EventInfo, Init, Storage};
55
use crate::signal::RxFuture;
66

7-
use windows_sys::Win32::Foundation::BOOL;
87
use windows_sys::Win32::System::Console as console;
98

109
pub(super) fn ctrl_break() -> io::Result<RxFuture> {
@@ -121,7 +120,7 @@ fn global_init() -> io::Result<()> {
121120
init.unwrap_or_else(|| Ok(()))
122121
}
123122

124-
unsafe extern "system" fn handler(ty: u32) -> BOOL {
123+
unsafe extern "system" fn handler(ty: u32) -> bool {
125124
let globals = globals();
126125
globals.record_event(ty as EventId);
127126

0 commit comments

Comments
 (0)