We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e27021e commit 99d8750Copy full SHA for 99d8750
library/core/src/fmt/mod.rs
@@ -7,7 +7,7 @@ use crate::char::{EscapeDebugExtArgs, MAX_LEN_UTF8};
7
use crate::marker::PhantomData;
8
use crate::num::fmt as numfmt;
9
use crate::ops::Deref;
10
-use crate::{iter, mem, result, str};
+use crate::{iter, result, str};
11
12
mod builders;
13
#[cfg(not(no_fp_fmt_parse))]
library/core/src/fmt/rt.rs
@@ -95,7 +95,7 @@ macro_rules! argument_new {
95
formatter: {
96
let f: fn(&$t, &mut Formatter<'_>) -> Result = $f;
97
// SAFETY: This is only called with `value`, which has the right type.
98
- unsafe { mem::transmute(f) }
+ unsafe { core::mem::transmute(f) }
99
},
100
#[cfg(any(sanitize = "cfi", sanitize = "kcfi"))]
101
formatter: |ptr: NonNull<()>, fmt: &mut Formatter<'_>| {
0 commit comments