diff --git a/Cargo.lock b/Cargo.lock index 8950c51de77c1..e629a0489d751 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3216,6 +3216,7 @@ dependencies = [ name = "delta_btree_map" version = "1.7.0-alpha" dependencies = [ + "educe 0.5.7", "enum-as-inner", ] diff --git a/src/utils/delta_btree_map/Cargo.toml b/src/utils/delta_btree_map/Cargo.toml index 8ae7245b2741d..da24f1d3a5c4d 100644 --- a/src/utils/delta_btree_map/Cargo.toml +++ b/src/utils/delta_btree_map/Cargo.toml @@ -16,6 +16,7 @@ normal = ["workspace-hack"] [dependencies] enum-as-inner = "0.6" +educe = "0.5" [lints] workspace = true diff --git a/src/utils/delta_btree_map/src/lib.rs b/src/utils/delta_btree_map/src/lib.rs index 120b02d9d0b2d..c300955af567b 100644 --- a/src/utils/delta_btree_map/src/lib.rs +++ b/src/utils/delta_btree_map/src/lib.rs @@ -18,11 +18,13 @@ use std::cmp::Ordering; use std::collections::BTreeMap; use std::ops::Bound; +use educe::Educe; use enum_as_inner::EnumAsInner; /// [`DeltaBTreeMap`] wraps two [`BTreeMap`] references respectively as snapshot and delta, /// providing cursor that can iterate over the updated version of the snapshot. -#[derive(Debug, Clone, Copy)] +#[derive(Debug, Educe)] +#[educe(Clone, Copy)] pub struct DeltaBTreeMap<'a, K: Ord, V> { snapshot: &'a BTreeMap, delta: &'a BTreeMap>,