Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1cbdfab

Browse files
committed
Use full path for core::mem::transmute
Suggested-by: Tamir Duberstein <tamird@gmail.com> Signed-off-by: Alice Ryhl <aliceryhl@google.com>
1 parent 2009ca6 commit 1cbdfab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎library/core/src/fmt/mod.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /