From 890463dab091811a7a37bb9949d8b3f91cb3b4fc Mon Sep 17 00:00:00 2001 From: Nayan Deshmukh Date: Sun, 14 Sep 2025 22:32:57 +0000 Subject: [PATCH] Reintroduce Copy and Clone traits for ReadFlag (#116) The traits were removed unintentionally when bitflag was updated to v2 as part of 0.6.2 release. The v2 removes the automatic derivation of certain traits. I'm putting back all the traits that were removed in order to not break any code that relied on it. Signed-off-by: Nayan Deshmukh --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index da34e377..8d8c03f5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -89,6 +89,7 @@ pub enum GrabMode { } bitflags! { +#[derive(PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy)] pub struct ReadFlag: u32 { /// Process data in sync mode const SYNC = 1;