Skip to content

Commit

Permalink
Merge pull request #2 from michaellass/dependabot/cargo/bitflags-tw-2…
Browse files Browse the repository at this point in the history
….0.0

Update bitflags requirement from ^1.2.1 to ^2.0.0
  • Loading branch information
michaellass committed Mar 14, 2023
2 parents 94543c1 + 7907a7e commit 8265ac5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ travis-ci = { repository = "michaellass/e2p-fileflags", branch = "master" }
e2p-sys = { version= "0.1.0", git = "https://github.com/michaellass/e2p-sys.git" }

[dependencies]
bitflags = "^1.2.1"
bitflags = "^2.0.0"
e2p-sys = { version= "0.1.0", git = "https://github.com/michaellass/e2p-sys.git" }
serde = { version = "^1.0.115", optional = true, features = ["derive"] }

[features]
serde = ["dep:serde", "bitflags/serde"]
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ use std::os::unix::io::AsRawFd;
use std::path::Path;

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

0 comments on commit 8265ac5

Please sign in to comment.