diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f24b7552a..0db2937e6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,7 +11,7 @@ When reporting an issue, in order to help the maintainers understand what the pr When making a code contribution to AccessKit, before opening your pull request please make sure that: -- your patch builds with AccessKit's minimal supported Rust version (currently Rust 1.85) +- your patch builds with AccessKit's minimal supported Rust version (currently Rust 1.87) - you added tests where applicable - you tested your modifications on all impacted platforms (see below) - you updated any relevant documentation diff --git a/Cargo.toml b/Cargo.toml index 836898309..327918112 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ categories = ["gui"] edition = "2024" license = "MIT OR Apache-2.0" repository = "https://github.com/AccessKit/accesskit" -rust-version = "1.85" +rust-version = "1.87" [workspace.dependencies] hashbrown = { version = "0.17", default-features = false, features = ["default-hasher"] } diff --git a/adapters/windows/src/util.rs b/adapters/windows/src/util.rs index b6e4d36f3..45b1d4705 100644 --- a/adapters/windows/src/util.rs +++ b/adapters/windows/src/util.rs @@ -109,7 +109,7 @@ pub(crate) struct LocaleName<'a>(pub(crate) &'a str); impl From> for Variant { fn from(value: LocaleName) -> Self { let lcid = unsafe { LocaleNameToLCID(&HSTRING::from(value.0), LOCALE_ALLOW_NEUTRAL_NAMES) }; - (lcid != 0).then_some(lcid as i32).into() + (lcid != 0).then_some(lcid.cast_signed()).into() } }