We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std
windows-strings
1 parent d41381d commit 30a574aCopy full SHA for 30a574a
crates/libs/strings/src/literals.rs
@@ -44,7 +44,7 @@ macro_rules! h {
44
#[allow(clippy::declare_interior_mutable_const)]
45
const RESULT: $crate::HSTRING = {
46
if OUTPUT_LEN == 1 {
47
- unsafe { ::std::mem::transmute(::std::ptr::null::<u16>()) }
+ unsafe { ::core::mem::transmute(::core::ptr::null::<u16>()) }
48
} else {
49
const OUTPUT: $crate::PCWSTR = $crate::w!($s);
50
const HEADER: $crate::HSTRING_HEADER = $crate::HSTRING_HEADER {
@@ -56,7 +56,7 @@ macro_rules! h {
56
};
57
// SAFETY: an `HSTRING` is exactly equivalent to a pointer to an `HSTRING_HEADER`
58
unsafe {
59
- ::std::mem::transmute::<&$crate::HSTRING_HEADER, $crate::HSTRING>(&HEADER)
+ ::core::mem::transmute::<&$crate::HSTRING_HEADER, $crate::HSTRING>(&HEADER)
60
}
61
62
0 commit comments