]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: remove spurious `use core::fmt::Debug`
authorTamir Duberstein <tamird@gmail.com>
Sat, 18 Oct 2025 19:16:30 +0000 (15:16 -0400)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 20 Oct 2025 02:04:24 +0000 (04:04 +0200)
We want folks to use `kernel::fmt` but this is only used for `derive` so
can be removed entirely.

This backslid in commit ea60cea07d8c ("rust: add `Alignment` type").

Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://patch.msgid.link/20251018-cstr-core-v18-9-9378a54385f8@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/ptr.rs

index 2e5e2a090480aa286fb06c35f10de757f3043521..e3893ed04049d24427e241d2705ad5df8307c1e7 100644 (file)
@@ -2,7 +2,6 @@
 
 //! Types and functions to work with pointers and addresses.
 
-use core::fmt::Debug;
 use core::mem::align_of;
 use core::num::NonZero;