From af0d82590c7f1adf2ca65c315c1b3ba683aa8396 Mon Sep 17 00:00:00 2001 From: Takeru Ohta Date: Sat, 2 Dec 2023 11:19:26 +0900 Subject: [PATCH] Update bitflags to v2 --- Cargo.toml | 2 +- src/node.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 74562c7..678f8ac 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ edition = "2021" coveralls = { repository = "sile/patricia_tree" } [dependencies] -bitflags = "1" +bitflags = "2" serde = { version = "1", optional = true } [dev-dependencies] diff --git a/src/node.rs b/src/node.rs index ef2254e..db2d70a 100644 --- a/src/node.rs +++ b/src/node.rs @@ -17,6 +17,7 @@ macro_rules! assert_some { } bitflags! { + #[derive(Clone, Copy)] pub (crate) struct Flags: u8 { const VALUE_ALLOCATED = 0b0000_0001; const VALUE_INITIALIZED = 0b0000_0010;