mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
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>
This commit is contained in:
parent
d0f6fc3f7a
commit
13f2bd893a
2 changed files with 24 additions and 7 deletions
|
|
@ -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>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue