Commit f4b72f15 authored by Andreas Hindborg's avatar Andreas Hindborg Committed by Jens Axboe
Browse files

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: default avatarAlice Ryhl <aliceryhl@google.com>
Reviewed-by: default avatarDaniel Almeida <daniel.almeida@collabora.com>
Signed-off-by: default avatarAndreas Hindborg <a.hindborg@kernel.org>
Link: https://lore.kernel.org/r/20250902-rnull-up-v6-16-v7-7-b5212cc89b98@kernel.org


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 60e1eeed
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -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`].