Skip to content

Commit f4b72f1

Browse files
Andreas Hindborgaxboe
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. Reviewed-by: Alice Ryhl <aliceryhl@google.com> Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com> Signed-off-by: Andreas Hindborg <a.hindborg@kernel.org> Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-7-b5212cc89b98@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 60e1eee commit f4b72f1

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)