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

Configure Feed

Select the types of activity you want to include in your feed.

rust: pci: use `kernel::fmt`

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

This backslid in commit ed78a01887e2 ("rust: pci: provide access to PCI
Class and Class-related items").

Acked-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Tamir Duberstein <tamird@gmail.com>
Link: https://patch.msgid.link/20251018-cstr-core-v18-8-9378a54385f8@gmail.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>

authored by

Tamir Duberstein and committed by
Miguel Ojeda
0e947bc2 7b0c32cb

+1 -2
+1 -2
rust/kernel/pci/id.rs
··· 4 4 //! 5 5 //! This module contains PCI class codes, Vendor IDs, and supporting types. 6 6 7 - use crate::{bindings, error::code::EINVAL, error::Error, prelude::*}; 8 - use core::fmt; 7 + use crate::{bindings, error::code::EINVAL, error::Error, fmt, prelude::*}; 9 8 10 9 /// PCI device class codes. 11 10 ///