Skip to content

Commit 18b4143

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 143021c commit 18b4143

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: 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))]

Diff for: core/src/fmt/rt.rs

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

0 commit comments

Comments
 (0)