We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 143021c commit 18b4143Copy full SHA for 18b4143
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))]
core/src/fmt/rt.rs
@@ -76,7 +76,7 @@ macro_rules! argument_new {
76
formatter: {
77
let f: fn(&$t, &mut Formatter<'_>) -> Result = $f;
78
// SAFETY: This is only called with `value`, which has the right type.
79
- unsafe { mem::transmute(f) }
+ unsafe { core::mem::transmute(f) }
80
},
81
#[cfg(any(sanitize = "cfi", sanitize = "kcfi"))]
82
formatter: |ptr: NonNull<()>, fmt: &mut Formatter<'_>| {
0 commit comments