Skip to content

Commit 9e0220e

Browse files
Andreas Hindborgkawasaki
authored andcommitted
rust: block: normalize imports for gen_disk.rs
Clean up the import statements in `gen_disk.rs` to make the code easier to maintain. Signed-off-by: Andreas Hindborg <[email protected]> Reviewed-by: Alice Ryhl <[email protected]>
1 parent 68e1265 commit 9e0220e

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

rust/kernel/block/mq/gen_disk.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
//! C header: [`include/linux/blkdev.h`](srctree/include/linux/blkdev.h)
66
//! C header: [`include/linux/blk_mq.h`](srctree/include/linux/blk_mq.h)
77
8-
use crate::block::mq::{raw_writer::RawWriter, Operations, TagSet};
9-
use crate::{bindings, error::from_err_ptr, error::Result, sync::Arc};
10-
use crate::{error, static_lock_class};
8+
use crate::{
9+
bindings,
10+
block::mq::{raw_writer::RawWriter, Operations, TagSet},
11+
error::{self, from_err_ptr, Result},
12+
static_lock_class,
13+
sync::Arc,
14+
};
1115
use core::fmt::{self, Write};
1216

1317
/// A builder for [`GenDisk`].

0 commit comments

Comments
 (0)