Skip to content

Commit 824843e

Browse files
committed
deref
1 parent 9bbc0a9 commit 824843e

File tree

2 files changed

+2
-2
lines changed
  • crates
    • samples/components/json_validator_winrt/src
    • tests/component/src

2 files changed

+2
-2
lines changed

crates/samples/components/json_validator_winrt/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ unsafe extern "system" fn DllGetActivationFactory(
7474

7575
let mut factory: Option<IActivationFactory> = None;
7676

77-
if name.read() == "Sample.JsonValidator" {
77+
if *name == "Sample.JsonValidator" {
7878
factory = Some(JsonValidatorFactory.into());
7979
}
8080

crates/tests/component/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ unsafe extern "system" fn DllGetActivationFactory(
7474
name: Ref<HSTRING>,
7575
factory: RefMut<IActivationFactory>,
7676
) -> HRESULT {
77-
if name.read() == "test_component.Class" {
77+
if *name == "test_component.Class" {
7878
factory.write(Some(ClassFactory.into())).into()
7979
} else {
8080
_ = factory.write(None);

0 commit comments

Comments
 (0)