Use full path for core::mem::transmute

Suggested-by: Tamir Duberstein <tamird@gmail.com>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
This commit is contained in:
Alice Ryhl 2025-04-14 13:54:49 +00:00
parent 2009ca6d88
commit 1cbdfab75d
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ use crate::char::{EscapeDebugExtArgs, MAX_LEN_UTF8};
use crate::marker::PhantomData;
use crate::num::fmt as numfmt;
use crate::ops::Deref;
use crate::{iter, mem, result, str};
use crate::{iter, result, str};
mod builders;
#[cfg(not(no_fp_fmt_parse))]

View File

@ -76,7 +76,7 @@ macro_rules! argument_new {
formatter: {
let f: fn(&$t, &mut Formatter<'_>) -> Result = $f;
// SAFETY: This is only called with `value`, which has the right type.
unsafe { mem::transmute(f) }
unsafe { core::mem::transmute(f) }
},
#[cfg(any(sanitize = "cfi", sanitize = "kcfi"))]
formatter: |ptr: NonNull<()>, fmt: &mut Formatter<'_>| {