From 824843e264e97a704007593a2acdaa356cf76313 Mon Sep 17 00:00:00 2001 From: Kenny Kerr Date: Thu, 9 May 2024 12:47:48 -0500 Subject: [PATCH] deref --- crates/samples/components/json_validator_winrt/src/lib.rs | 2 +- crates/tests/component/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/samples/components/json_validator_winrt/src/lib.rs b/crates/samples/components/json_validator_winrt/src/lib.rs index d2f20c1257..7c39d6e024 100644 --- a/crates/samples/components/json_validator_winrt/src/lib.rs +++ b/crates/samples/components/json_validator_winrt/src/lib.rs @@ -74,7 +74,7 @@ unsafe extern "system" fn DllGetActivationFactory( let mut factory: Option = None; - if name.read() == "Sample.JsonValidator" { + if *name == "Sample.JsonValidator" { factory = Some(JsonValidatorFactory.into()); } diff --git a/crates/tests/component/src/lib.rs b/crates/tests/component/src/lib.rs index 4ca8b9ea7a..82cd69fa98 100644 --- a/crates/tests/component/src/lib.rs +++ b/crates/tests/component/src/lib.rs @@ -74,7 +74,7 @@ unsafe extern "system" fn DllGetActivationFactory( name: Ref, factory: RefMut, ) -> HRESULT { - if name.read() == "test_component.Class" { + if *name == "test_component.Class" { factory.write(Some(ClassFactory.into())).into() } else { _ = factory.write(None);