Skip to content

Commit 1422d05

Browse files
committed
Upgrade to windows-sys 0.60
1 parent 72b4f18 commit 1422d05

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

Cargo.lock

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ features = [
125125
"Win32_UI",
126126
"Win32_UI_WindowsAndMessaging",
127127
]
128-
version = "0.59"
128+
version = "0.60"
129129

130130
[dev-dependencies]
131131
enum-map = "2.5.0"

src/command.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::{
77

88
use anyhow::{Context, Result};
99

10-
use crate::errors::*;
10+
use crate::errors::RustupError;
1111

1212
#[tracing::instrument(level = "trace", err(level = "trace"))]
1313
pub(crate) fn run_command_for_dir<S: AsRef<OsStr> + Debug>(
@@ -35,7 +35,8 @@ pub(crate) fn run_command_for_dir<S: AsRef<OsStr> + Debug>(
3535

3636
#[cfg(windows)]
3737
fn exec(cmd: &mut Command) -> io::Result<ExitStatus> {
38-
use windows_sys::Win32::Foundation::{BOOL, FALSE, TRUE};
38+
use windows_result::BOOL;
39+
use windows_sys::Win32::Foundation::{FALSE, TRUE};
3940
use windows_sys::Win32::System::Console::SetConsoleCtrlHandler;
4041

4142
unsafe extern "system" fn ctrlc_handler(_: u32) -> BOOL {

src/dist/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,8 @@ impl TargetTriple {
422422
/// it is only available on Windows 10 1511+, so we use `GetProcAddress`
423423
/// to maintain backward compatibility with older Windows versions.
424424
fn arch_primary() -> Option<&'static str> {
425-
use windows_sys::Win32::Foundation::{BOOL, HANDLE};
425+
use windows_result::BOOL;
426+
use windows_sys::Win32::Foundation::HANDLE;
426427
use windows_sys::Win32::System::LibraryLoader::{GetModuleHandleA, GetProcAddress};
427428
use windows_sys::Win32::System::Threading::GetCurrentProcess;
428429
use windows_sys::core::s;

0 commit comments

Comments
 (0)