diff --git a/crates/libs/strings/src/literals.rs b/crates/libs/strings/src/literals.rs index 493ca14bd6..c5c5d86c97 100644 --- a/crates/libs/strings/src/literals.rs +++ b/crates/libs/strings/src/literals.rs @@ -44,7 +44,7 @@ macro_rules! h { #[allow(clippy::declare_interior_mutable_const)] const RESULT: $crate::HSTRING = { if OUTPUT_LEN == 1 { - unsafe { ::std::mem::transmute(::std::ptr::null::()) } + unsafe { ::core::mem::transmute(::core::ptr::null::()) } } else { const OUTPUT: $crate::PCWSTR = $crate::w!($s); const HEADER: $crate::HSTRING_HEADER = $crate::HSTRING_HEADER { @@ -56,7 +56,7 @@ macro_rules! h { }; // SAFETY: an `HSTRING` is exactly equivalent to a pointer to an `HSTRING_HEADER` unsafe { - ::std::mem::transmute::<&$crate::HSTRING_HEADER, $crate::HSTRING>(&HEADER) + ::core::mem::transmute::<&$crate::HSTRING_HEADER, $crate::HSTRING>(&HEADER) } } };