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:
parent
2009ca6d88
commit
1cbdfab75d
2 changed files with 2 additions and 2 deletions
|
@ -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))]
|
||||
|
|
|
@ -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<'_>| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue