Skip to content

Commit

Permalink
Increase bitflags dependency lower bound to 2.3.3
Browse files Browse the repository at this point in the history
Explicitly derive necessary implementations that the bitflag macro used
to supply by default, and that are necessary for compilation.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jul 6, 2023
1 parent 6a2d53c commit fb0065f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rust-version = "1.69.0" # LOWEST SUPPORTED RUST TOOLCHAIN
exclude = [".clippy.toml", ".githooks/*", ".gitignore", ".github/*", "Makefile"]

[dependencies]
bitflags = "1.3.2"
bitflags = "2.3.3"
nix = "0.26.0"
env_logger="0.10.0"
semver = "1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions src/core/dm_flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::core::dm_ioctl as dmi;

bitflags! {
/// Flags used by devicemapper.
#[derive(Default)]
#[derive(Clone, Copy, Debug, Default)]
pub struct DmFlags: dmi::__u32 {
/// In: Device should be read-only.
/// Out: Device is read-only.
Expand Down Expand Up @@ -52,7 +52,7 @@ bitflags! {
/// Flags used by devicemapper, see:
/// https://sourceware.org/git/?p=lvm2.git;a=blob;f=libdm/libdevmapper.h#l3627
/// for complete information about the meaning of the flags.
#[derive(Default)]
#[derive(Clone, Copy, Debug, Default)]
pub struct DmUdevFlags: u32 {
/// Disables basic device-mapper udev rules that create symlinks in /dev/<DM_DIR>
/// directory.
Expand Down

0 comments on commit fb0065f

Please sign in to comment.