Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rust: sync: use `kernel::{fmt,prelude::fmt!}`

Reduce coupling to implementation details of the formatting machinery by
avoiding direct use for `core`'s formatting traits and macros.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

authored by

Tamir Duberstein and committed by
Miguel Ojeda
0fe1ca3c 5990533a

+1 -1
+1 -1
rust/kernel/sync/arc.rs
··· 20 20 alloc::{AllocError, Flags, KBox}, 21 21 bindings, 22 22 ffi::c_void, 23 + fmt, 23 24 init::InPlaceInit, 24 25 try_init, 25 26 types::{ForeignOwnable, Opaque}, ··· 28 27 use core::{ 29 28 alloc::Layout, 30 29 borrow::{Borrow, BorrowMut}, 31 - fmt, 32 30 marker::PhantomData, 33 31 mem::{ManuallyDrop, MaybeUninit}, 34 32 ops::{Deref, DerefMut},