Skip to content

Commit b27f7ed

Browse files
deps: Update windows-rs to 0.62 (#682)
1 parent f8c22cb commit b27f7ed

File tree

6 files changed

+39
-30
lines changed

6 files changed

+39
-30
lines changed

Cargo.lock

Lines changed: 30 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

platforms/windows/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ accesskit = { version = "0.23.0", path = "../../common" }
2020
accesskit_consumer = { version = "0.33.1", path = "../../consumer" }
2121
hashbrown.workspace = true
2222
static_assertions = "1.1.0"
23-
windows-core = "0.61.0"
23+
windows-core = "0.62.0"
2424

2525
[dependencies.windows]
26-
version = "0.61.1"
26+
version = "0.62.0"
2727
features = [
2828
"Win32_Foundation",
2929
"Win32_Globalization",

platforms/windows/examples/hello_world.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static WINDOW_CLASS_ATOM: Lazy<u16> = Lazy::new(|| {
3131

3232
let atom = unsafe { RegisterClassW(&wc) };
3333
if atom == 0 {
34-
panic!("{}", Error::from_win32());
34+
panic!("{}", Error::from_thread());
3535
}
3636
atom
3737
});
@@ -344,7 +344,7 @@ fn create_window(title: &str, initial_focus: NodeId) -> Result<HWND> {
344344
)?
345345
};
346346
if window.is_invalid() {
347-
return Err(Error::from_win32());
347+
return Err(Error::from_thread());
348348
}
349349

350350
Ok(window)

platforms/windows/src/subclass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use windows::{
1717
use crate::{Adapter, QueuedEvents};
1818

1919
fn win32_error() -> ! {
20-
panic!("{}", Error::from_win32())
20+
panic!("{}", Error::from_thread())
2121
}
2222

2323
// Work around a difference between the SetWindowLongPtrW API definition

platforms/windows/src/tests/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static WINDOW_CLASS_ATOM: Lazy<u16> = Lazy::new(|| {
4545

4646
let atom = unsafe { RegisterClassW(&wc) };
4747
if atom == 0 {
48-
panic!("{}", Error::from_win32());
48+
panic!("{}", Error::from_thread());
4949
}
5050
atom
5151
});
@@ -161,7 +161,7 @@ fn create_window(
161161
)?
162162
};
163163
if window.is_invalid() {
164-
return Err(Error::from_win32());
164+
return Err(Error::from_thread());
165165
}
166166

167167
Ok(window)

platforms/windows/src/tests/subclassed.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ static WINDOW_CLASS_ATOM: Lazy<u16> = Lazy::new(|| {
133133

134134
let atom = unsafe { RegisterClassW(&wc) };
135135
if atom == 0 {
136-
panic!("{}", Error::from_win32());
136+
panic!("{}", Error::from_thread());
137137
}
138138
atom
139139
});
@@ -159,7 +159,7 @@ fn create_window(title: &str) -> HWND {
159159
}
160160
.unwrap();
161161
if window.is_invalid() {
162-
panic!("{}", Error::from_win32());
162+
panic!("{}", Error::from_thread());
163163
}
164164

165165
window

0 commit comments

Comments
 (0)