From d454f5258893ed6577c3dbd68c8294181f1baf45 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 3 Oct 2020 14:31:10 +0200 Subject: [PATCH] Make IoRingOp Copy This is useful to be able to cast this to int without consuming --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a9bb200..02b48e3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,7 +6,7 @@ pub const LIBURING_UDATA_TIMEOUT: libc::__u64 = libc::__u64::max_value(); #[repr(C)] #[non_exhaustive] #[allow(nonstandard_style)] -#[derive(Debug)] +#[derive(Clone, Copy, Debug)] pub enum IoRingOp { IORING_OP_NOP, IORING_OP_READV,