rust: use `kernel::{fmt,prelude::fmt!}`
authorTamir Duberstein <tamird@gmail.com>
Fri, 4 Jul 2025 20:14:54 +0000 (16:14 -0400)
committerMiguel Ojeda <ojeda@kernel.org>
Sun, 20 Jul 2025 23:16:35 +0000 (01:16 +0200)
commit386f285d885ae40b64ccf8328d59694055af3187
tree2fea8e1dbe2a3c23e7db38c67d61d98c4d2f952b
parentbda947d613f1882c73ebb3ddda388459bab5902c
rust: 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.

Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Reviewed-by: Benno Lossin <lossin@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250704-core-cstr-prepare-v1-3-a91524037783@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/error.rs
rust/kernel/print.rs
rust/kernel/str.rs
samples/rust/rust_print_main.rs