Skip to content

Commit 890463d

Browse files
committed
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 <[email protected]>
1 parent 272843a commit 890463d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ pub enum GrabMode {
8989
}
9090

9191
bitflags! {
92+
#[derive(PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy)]
9293
pub struct ReadFlag: u32 {
9394
/// Process data in sync mode
9495
const SYNC = 1;

0 commit comments

Comments
 (0)