Skip to content

Commit 0e947bc

Browse files
tamirdojeda
authored andcommitted
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 ed78a01 ("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>
1 parent 7b0c32c commit 0e947bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

rust/kernel/pci/id.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
//!
55
//! This module contains PCI class codes, Vendor IDs, and supporting types.
66
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::*};
98

109
/// PCI device class codes.
1110
///

0 commit comments

Comments
 (0)