diff options
| author | Alice Ryhl <aliceryhl@google.com> | 2025-04-14 13:54:49 +0000 |
|---|---|---|
| committer | Alice Ryhl <aliceryhl@google.com> | 2025-04-15 07:24:35 +0000 |
| commit | 1cbdfab75d6dbf9c383ece8fe2e2642e5db2f2e7 (patch) | |
| tree | 96bc9868fb6ce880028cb085f0e31ee580ae8086 | |
| parent | 2009ca6d88a363b84b4733e253835fe13ec96540 (diff) | |
| download | rust-1cbdfab75d6dbf9c383ece8fe2e2642e5db2f2e7.tar.gz rust-1cbdfab75d6dbf9c383ece8fe2e2642e5db2f2e7.zip | |
Use full path for core::mem::transmute
Suggested-by: Tamir Duberstein <tamird@gmail.com> Signed-off-by: Alice Ryhl <aliceryhl@google.com>
| -rw-r--r-- | library/core/src/fmt/mod.rs | 2 | ||||
| -rw-r--r-- | library/core/src/fmt/rt.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/fmt/mod.rs b/library/core/src/fmt/mod.rs index 7ca390941bc..580f95eddce 100644 --- a/library/core/src/fmt/mod.rs +++ b/library/core/src/fmt/mod.rs @@ -7,7 +7,7 @@ use crate::char::{EscapeDebugExtArgs, MAX_LEN_UTF8}; use crate::marker::PhantomData; use crate::num::fmt as numfmt; use crate::ops::Deref; -use crate::{iter, mem, result, str}; +use crate::{iter, result, str}; mod builders; #[cfg(not(no_fp_fmt_parse))] diff --git a/library/core/src/fmt/rt.rs b/library/core/src/fmt/rt.rs index c36feff0b62..b9cae8645cd 100644 --- a/library/core/src/fmt/rt.rs +++ b/library/core/src/fmt/rt.rs @@ -76,7 +76,7 @@ macro_rules! argument_new { formatter: { let f: fn(&$t, &mut Formatter<'_>) -> Result = $f; // SAFETY: This is only called with `value`, which has the right type. - unsafe { mem::transmute(f) } + unsafe { core::mem::transmute(f) } }, #[cfg(any(sanitize = "cfi", sanitize = "kcfi"))] formatter: |ptr: NonNull<()>, fmt: &mut Formatter<'_>| { |
