From 66f2d6138d1ee4767c4388e39905daaf9e800b7c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 3 Jul 2023 14:53:55 +0000 Subject: [PATCH 1/2] Bump bitflags from 1.3.2 to 2.3.3 Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.3.3. - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/1.3.2...2.3.3) --- updated-dependencies: - dependency-name: bitflags dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- Cargo.lock | 8 +++++++- Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f22bdba..6810986 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -110,6 +110,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42" + [[package]] name = "bumpalo" version = "3.12.0" @@ -487,7 +493,7 @@ checksum = "b06a4cde4c0f271a446782e3eff8de789548ce57dbc8eca9292c27f4a42004b4" name = "masscanned" version = "0.2.0" dependencies = [ - "bitflags 1.3.2", + "bitflags 2.3.3", "byteorder", "chrono", "clap", diff --git a/Cargo.toml b/Cargo.toml index 48de93f..645269b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ authors = ["_Frky <3105926+Frky@users.noreply.github.com>"] edition = "2018" [dependencies] -bitflags = "1.2.1" +bitflags = "2.3.3" byteorder = "1.4.3" chrono = "0.4.26" clap = "4.3.10" From cc17dec2d557bed57dbaab3d4f3a30d19ff0827a Mon Sep 17 00:00:00 2001 From: Pierre Lalet Date: Mon, 3 Jul 2023 18:26:13 +0200 Subject: [PATCH 2/2] Update SmackFlags to support Copy Needed to update bitflags from 1.x to 2.x --- src/smack/smack_utils.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/smack/smack_utils.rs b/src/smack/smack_utils.rs index 79bb459..bed3b6e 100644 --- a/src/smack/smack_utils.rs +++ b/src/smack/smack_utils.rs @@ -1,4 +1,5 @@ bitflags! { + #[derive(Clone, Copy)] pub struct SmackFlags: usize { const EMPTY = 0x00; const ANCHOR_BEGIN = 0x01;