Skip to content

Commit 5ac77a0

Browse files
Andreas Hindborgkawasaki
authored andcommitted
rust: block: remove trait bound from mq::Request definition
Remove the trait bound `T:Operations` from `mq::Request`. The bound is not required, so remove it to reduce complexity. Signed-off-by: Andreas Hindborg <[email protected]> Reviewed-by: Alice Ryhl <[email protected]>
1 parent c5c8dfd commit 5ac77a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/block/mq/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use core::{
5353
/// [`struct request`]: srctree/include/linux/blk-mq.h
5454
///
5555
#[repr(transparent)]
56-
pub struct Request<T: Operations>(Opaque<bindings::request>, PhantomData<T>);
56+
pub struct Request<T>(Opaque<bindings::request>, PhantomData<T>);
5757

5858
impl<T: Operations> Request<T> {
5959
/// Create an [`ARef<Request>`] from a [`struct request`] pointer.

0 commit comments

Comments
 (0)