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>
This commit is contained in:
Andreas Hindborg 2025-09-02 11:55:01 +02:00 committed by Jens Axboe
parent 60e1eeed8b
commit f4b72f1558

View File

@ -5,9 +5,13 @@
//! C header: [`include/linux/blkdev.h`](srctree/include/linux/blkdev.h)
//! C header: [`include/linux/blk_mq.h`](srctree/include/linux/blk_mq.h)
use crate::block::mq::{raw_writer::RawWriter, Operations, TagSet};
use crate::{bindings, error::from_err_ptr, error::Result, sync::Arc};
use crate::{error, static_lock_class};
use crate::{
bindings,
block::mq::{raw_writer::RawWriter, Operations, TagSet},
error::{self, from_err_ptr, Result},
static_lock_class,
sync::Arc,
};
use core::fmt::{self, Write};
/// A builder for [`GenDisk`].