Skip to content

Commit

Permalink
Merge pull request #151 from ANSSI-FR/dependabot/cargo/bitflags-2.1
Browse files Browse the repository at this point in the history
Update bitflags requirement from 1.2 to 2.1
  • Loading branch information
commial committed Apr 24, 2023
2 parents 11a6ee4 + 99d0eec commit 38c96e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mla/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ readme = "../README.md"
rand = { version = "0.8", default-features = false, features = ["getrandom", "std"]}
rand_chacha = { version = "0.3", default-features = false}
brotli = { version = "3.3", default-features = false, features = ["std"]}
bitflags = { version = "1.2", default-features = false}
bitflags = { version = "2.1", default-features = false, features = ["serde"]}
byteorder = { version = "1.3", default-features = false, features = ["std"] }
serde = { version = "1", default-features = false, features = ["derive"] }
bincode = { version = "1.3", default-features = false}
Expand Down
4 changes: 2 additions & 2 deletions mla/src/lib.rs
Expand Up @@ -54,12 +54,12 @@ bitflags! {
/// [Encryption (ENCRYPT)]
/// [Raw File I/O]
/// ```
#[derive(Serialize, Deserialize)]
#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]
pub struct Layers: u8 {
const ENCRYPT = 0b0000_0001;
const COMPRESS = 0b0000_0010;
/// Recommended layering
const DEFAULT = Self::ENCRYPT.bits | Self::COMPRESS.bits;
const DEFAULT = Self::ENCRYPT.bits() | Self::COMPRESS.bits();
/// No additional layer (ie, for debugging purpose)
const DEBUG = 0;
const EMPTY = 0;
Expand Down

0 comments on commit 38c96e8

Please sign in to comment.