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>
This commit is contained in:
parent
5990533a83
commit
0fe1ca3c8b
|
|
@ -20,6 +20,7 @@ use crate::{
|
||||||
alloc::{AllocError, Flags, KBox},
|
alloc::{AllocError, Flags, KBox},
|
||||||
bindings,
|
bindings,
|
||||||
ffi::c_void,
|
ffi::c_void,
|
||||||
|
fmt,
|
||||||
init::InPlaceInit,
|
init::InPlaceInit,
|
||||||
try_init,
|
try_init,
|
||||||
types::{ForeignOwnable, Opaque},
|
types::{ForeignOwnable, Opaque},
|
||||||
|
|
@ -27,7 +28,6 @@ use crate::{
|
||||||
use core::{
|
use core::{
|
||||||
alloc::Layout,
|
alloc::Layout,
|
||||||
borrow::{Borrow, BorrowMut},
|
borrow::{Borrow, BorrowMut},
|
||||||
fmt,
|
|
||||||
marker::PhantomData,
|
marker::PhantomData,
|
||||||
mem::{ManuallyDrop, MaybeUninit},
|
mem::{ManuallyDrop, MaybeUninit},
|
||||||
ops::{Deref, DerefMut},
|
ops::{Deref, DerefMut},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue