summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2026-01-05 15:19:42 +0100
committerDanilo Krummrich <dakr@kernel.org>2026-01-07 19:55:49 +0100
commit6506b44e88da265688f786d379987e91b4826bf4 (patch)
treea36368f4ff4ecd9bc1964e4223f7e6a7158c939b /samples
parent31bc0aade4e03a056a6b568571e59d3783c97ffc (diff)
rust: auxiliary: use "kernel vertical" style for imports
Convert all imports to use "kernel vertical" style. With this, subsequent patches neither introduce unrelated changes nor leave an inconsistent import pattern. While at it, drop unnecessary imports covered by prelude::*. Link: https://docs.kernel.org/rust/coding-guidelines.html#imports Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://patch.msgid.link/20260105142123.95030-1-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'samples')
-rw-r--r--samples/rust/rust_driver_auxiliary.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/samples/rust/rust_driver_auxiliary.rs b/samples/rust/rust_driver_auxiliary.rs
index 1e4fb23cfcb0..f148124fe81f 100644
--- a/samples/rust/rust_driver_auxiliary.rs
+++ b/samples/rust/rust_driver_auxiliary.rs
@@ -6,13 +6,15 @@
use kernel::{
auxiliary,
- device::{Bound, Core},
+ device::{
+ Bound,
+ Core, //
+ },
devres::Devres,
driver,
- error::Error,
pci,
prelude::*,
- InPlaceModule,
+ InPlaceModule, //
};
use core::any::TypeId;