diff --git a/src/btreemap.rs b/src/btreemap.rs index eeee7aa3..b4165bb9 100644 --- a/src/btreemap.rs +++ b/src/btreemap.rs @@ -120,7 +120,7 @@ where pub fn init_v2(memory: M) -> Self { if memory.size() == 0 { // Memory is empty. Create a new map. - return BTreeMap::new(memory); + return BTreeMap::new_v2(memory); } // Check if the magic in the memory corresponds to a BTreeMap.