Skip to content

Commit ee7e508

Browse files
committed
fix(provider-windows-uia): replace Lazy with LazyLock in static descriptors
The Linux refactoring missed two Lazy → LazyLock replacements in provider.rs, causing a build failure on Windows. The import for std::sync::LazyLock was already present.
1 parent 6731fd6 commit ee7e508

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/provider-windows-uia/src/provider.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub struct WindowsUiaFactory;
114114

115115
impl UiTreeProviderFactory for WindowsUiaFactory {
116116
fn descriptor(&self) -> &ProviderDescriptor {
117-
static DESCRIPTOR: Lazy<ProviderDescriptor> = Lazy::new(|| {
117+
static DESCRIPTOR: LazyLock<ProviderDescriptor> = LazyLock::new(|| {
118118
ProviderDescriptor::new(
119119
PROVIDER_ID,
120120
PROVIDER_NAME,
@@ -138,7 +138,7 @@ pub struct WindowsUiaProvider {
138138

139139
impl WindowsUiaProvider {
140140
fn new() -> Self {
141-
static DESCRIPTOR: Lazy<ProviderDescriptor> = Lazy::new(|| {
141+
static DESCRIPTOR: LazyLock<ProviderDescriptor> = LazyLock::new(|| {
142142
ProviderDescriptor::new(
143143
PROVIDER_ID,
144144
PROVIDER_NAME,

0 commit comments

Comments
 (0)