summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2026-01-05 15:19:45 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-07 16:12:48 +0100
commit13f2bd893ae3638c96e7c54a6e477dbceec6e529 (patch)
treec9030bab74ac5e32502f1bf2caa2c01f981484e0 /samples
parentd0f6fc3f7abab441377d5a7f46f11cb981a1679f (diff)
rust: usb: 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 Signed-off-by: Danilo Krummrich <dakr@kernel.org> Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Link: https://patch.msgid.link/20260105142123.95030-4-dakr@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
-rw-r--r--samples/rust/rust_driver_usb.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/samples/rust/rust_driver_usb.rs b/samples/rust/rust_driver_usb.rs
index 4eaad14867b2..ab72e99e1274 100644
--- a/samples/rust/rust_driver_usb.rs
+++ b/samples/rust/rust_driver_usb.rs
@@ -3,7 +3,15 @@
//! Rust USB driver sample.
-use kernel::{device, device::Core, prelude::*, sync::aref::ARef, usb};
+use kernel::{
+ device::{
+ self,
+ Core, //
+ },
+ prelude::*,
+ sync::aref::ARef,
+ usb, //
+};
struct SampleDriver {
_intf: ARef<usb::Interface>,