From 4986009dc47fee5bfa2dce97b7901745b8877dca Mon Sep 17 00:00:00 2001 From: Andrew Gazelka Date: Wed, 24 Apr 2024 14:02:02 -0500 Subject: [PATCH] feat: more derive traits for Fixed type --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index f54ba69..dd165c8 100644 --- a/src/types.rs +++ b/src/types.rs @@ -72,7 +72,7 @@ pub struct Fd(pub RawFd); /// A file descriptor that has been registered with io_uring using /// [`Submitter::register_files`](crate::Submitter::register_files) or [`Submitter::register_files_sparse`](crate::Submitter::register_files_sparse). /// This can reduce overhead compared to using [`Fd`] in some cases. -#[derive(Debug, Clone, Copy)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] #[repr(transparent)] pub struct Fixed(pub u32);