shardtree: Migrate to `bitflags 2`
This commit is contained in:
parent
6628520585
commit
3f8999816f
|
@ -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 }
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue