Skip to content

Commit 9255d96

Browse files
authored
deps: bump windows-sys to version 0.61 (#7645)
1 parent ffcc9f7 commit 9255d96

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

examples/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ httpdate = "1.0"
2525
once_cell = "1.5.2"
2626

2727
[target.'cfg(windows)'.dev-dependencies.windows-sys]
28-
version = "0.59"
28+
version = "0.61"
2929

3030
[[example]]
3131
name = "chat"

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ 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;
7+
use windows_sys::core::BOOL;
88
use windows_sys::Win32::System::Console as console;
99

1010
pub(super) fn ctrl_break() -> io::Result<RxFuture> {

0 commit comments

Comments
 (0)