Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion platforms/windows/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ features = [
]

[dev-dependencies]
once_cell = "1.13.0"
parking_lot = "0.12.4"
scopeguard = "1.1.0"
winit = "0.30"
5 changes: 2 additions & 3 deletions platforms/windows/examples/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use accesskit::{
TreeId, TreeInfo, TreeUpdate,
};
use accesskit_windows::Adapter;
use once_cell::sync::Lazy;
use std::cell::RefCell;
use std::{cell::RefCell, sync::LazyLock};
use windows::{
Win32::{
Foundation::*,
Expand All @@ -17,7 +16,7 @@ use windows::{
core::*,
};

static WINDOW_CLASS_ATOM: Lazy<u16> = Lazy::new(|| {
static WINDOW_CLASS_ATOM: LazyLock<u16> = LazyLock::new(|| {
let class_name = w!("AccessKitTest");

let wc = WNDCLASSW {
Expand Down
5 changes: 2 additions & 3 deletions platforms/windows/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@
// the LICENSE-MIT file), at your option.

use accesskit::{ActionHandler, ActivationHandler};
use once_cell::sync::Lazy;
use std::{
cell::RefCell,
sync::{Arc, Condvar, Mutex},
sync::{Arc, Condvar, LazyLock, Mutex},
thread,
time::Duration,
};
Expand All @@ -31,7 +30,7 @@ use super::{

const DEFAULT_TIMEOUT: Duration = Duration::from_secs(5);

static WINDOW_CLASS_ATOM: Lazy<u16> = Lazy::new(|| {
static WINDOW_CLASS_ATOM: LazyLock<u16> = LazyLock::new(|| {
let class_name = w!("AccessKitTest");

let wc = WNDCLASSW {
Expand Down
4 changes: 2 additions & 2 deletions platforms/windows/src/tests/subclassed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use accesskit::{
Action, ActionHandler, ActionRequest, ActivationHandler, Node, NodeId, Role, TreeId, TreeInfo,
TreeUpdate,
};
use once_cell::sync::Lazy;
use std::sync::LazyLock;
use windows::{
Win32::{
Foundation::*,
Expand Down Expand Up @@ -119,7 +119,7 @@ extern "system" fn wndproc(window: HWND, message: u32, wparam: WPARAM, lparam: L
unsafe { DefWindowProcW(window, message, wparam, lparam) }
}

static WINDOW_CLASS_ATOM: Lazy<u16> = Lazy::new(|| {
static WINDOW_CLASS_ATOM: LazyLock<u16> = LazyLock::new(|| {
let class_name = w!("AccessKitSubclassTest");

let wc = WNDCLASSW {
Expand Down
Loading