shardtree: Migrate to `bitflags 2`

This commit is contained in:
Jack Grigg 2023-07-27 23:14:58 +00:00
parent 6628520585
commit 3f8999816f
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ rustdoc-args = ["--cfg", "docsrs"]
[dependencies]
assert_matches = { version = "1.5", optional = true }
bitflags = "1.3"
bitflags = "2"
either = "1.8"
incrementalmerkletree = { version = "0.4", path = "../incrementalmerkletree" }
proptest = { version = "1.0.0", optional = true }

View File

@ -14,6 +14,7 @@ use crate::{LocatedTree, Node, Tree};
bitflags! {
/// Flags storing the [`Retention`] state of a leaf.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct RetentionFlags: u8 {
/// An leaf with `EPHEMERAL` retention can be pruned as soon as we are certain that it is not part
/// of the witness for a leaf with [`CHECKPOINT`] or [`MARKED`] retention.