diff --git a/crates/libs/interface/src/lib.rs b/crates/libs/interface/src/lib.rs index 1460c9d7fe..1387b6f3d1 100644 --- a/crates/libs/interface/src/lib.rs +++ b/crates/libs/interface/src/lib.rs @@ -361,7 +361,7 @@ impl Interface { impl ::core::cmp::Eq for #name {} impl ::core::fmt::Debug for #name { fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result { - f.debug_tuple(#name_string).field(&self.as_raw()).finish() + f.debug_tuple(#name_string).field(&::windows_core::Interface::as_raw(self)).finish() } } } diff --git a/crates/tests/agile_reference/tests/tests.rs b/crates/tests/agile_reference/tests/tests.rs index 0afa0f6b38..249fc397fe 100644 --- a/crates/tests/agile_reference/tests/tests.rs +++ b/crates/tests/agile_reference/tests/tests.rs @@ -20,6 +20,6 @@ fn agile_debug() -> Result<()> { assert!(format!("{uri:?}").starts_with("Uri(IUnknown(0x")); let reference = AgileReference::new(&uri)?; - assert!(format!("{reference:?}").starts_with("AgileReference(IAgileReference(IUnknown(0x")); + assert!(format!("{reference:?}").starts_with("AgileReference(IAgileReference(0x")); Ok(()) }