[PATCH v2] samples: rust_dma: use vertical import style
Guru Das Srinagesh <[email protected]> Tue, 21 Jul 2026 00:55:30 -0700
| Newsgroups | dev.linux.lists.llvm,dev.linux.lists.driver-core,org.kernel.vger.linux-kernel,org.kernel.vger.rust-for-linux |
|---|---|
| Message-ID | <[email protected]> |
Convert `use` imports to vertical layout for better readability and maintainability. Signed-off-by: Guru Das Srinagesh <[email protected]> --- Came across a recent commit bc58905eb07 ("samples: rust_misc_device: use vertical import style") and found a few more locations that could benefit from this cleanup. No functional changes. Separating out patches per-subsystem as per the review feedback in [0]. Tested via: $ make LLVM=1 rustfmtcheck || echo "fail" $ [0]: https://lore.kernel.org/lkml/[email protected]/ --- Changes in v2: - Link Mauve: Relocated empty terminal comment from middle of imports to end of all imports - Link to v1: https://patch.msgid.link/[email protected] To: Danilo Krummrich <[email protected]> To: Abdiel Janulgue <[email protected]> To: Daniel Almeida <[email protected]> To: Robin Murphy <[email protected]> To: Andreas Hindborg <[email protected]> To: Miguel Ojeda <[email protected]> To: Boqun Feng <[email protected]> To: Gary Guo <[email protected]> To: Björn Roy Baron <[email protected]> To: Benno Lossin <[email protected]> To: Alice Ryhl <[email protected]> To: Trevor Gross <[email protected]> To: Tamir Duberstein <[email protected]> To: Alexandre Courbot <[email protected]> To: Onur Özkan <[email protected]> To: Nathan Chancellor <[email protected]> To: Nick Desaulniers <[email protected]> To: Bill Wendling <[email protected]> To: Justin Stitt <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] --- samples/rust/rust_dma.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/samples/rust/rust_dma.rs b/samples/rust/rust_dma.rs index 5046b4628d0e..fc958d496c3e 100644 --- a/samples/rust/rust_dma.rs +++ b/samples/rust/rust_dma.rs @@ -12,10 +12,14 @@ Device, DmaMask, // }, - page, pci, + page, + pci, prelude::*, - scatterlist::{Owned, SGTable}, - sync::aref::ARef, + scatterlist::{ + Owned, + SGTable, // + }, + sync::aref::ARef, // }; #[pin_data(PinnedDrop)] --- base-commit: dc59e4fea9d83f03bad6bddf3fa2e52491777482 change-id: 20260705-rfl-vert-imp-d12bdbe397c7 Best regards, -- Guru Das Srinagesh <[email protected]>