Skip to content

Commit

Permalink
Add Debug and PartialEq to derived traits for bitflags
Browse files Browse the repository at this point in the history
These are not derived automatically anymore with bitflags 2.0.0.
  • Loading branch information
michaellass committed Mar 14, 2023
1 parent 05526bc commit 83bbcd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ use std::os::unix::io::AsRawFd;
use std::path::Path;

bitflags! {
#[derive(Default)]
#[derive(Default, Debug, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
pub struct Flags: u32 {
const SECRM = EXT2_SECRM_FL;
Expand Down

0 comments on commit 83bbcd4

Please sign in to comment.