Skip to content

Commit 99d8750

Browse files
committed
Use full path for core::mem::transmute
Suggested-by: Tamir Duberstein <[email protected]> Signed-off-by: Alice Ryhl <[email protected]>
1 parent e27021e commit 99d8750

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/core/src/fmt/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use crate::char::{EscapeDebugExtArgs, MAX_LEN_UTF8};
77
use crate::marker::PhantomData;
88
use crate::num::fmt as numfmt;
99
use crate::ops::Deref;
10-
use crate::{iter, mem, result, str};
10+
use crate::{iter, result, str};
1111

1212
mod builders;
1313
#[cfg(not(no_fp_fmt_parse))]

library/core/src/fmt/rt.rs

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

0 commit comments

Comments
 (0)