diff --git a/src/lib.rs b/src/lib.rs index ad64870..043ce7f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -210,7 +210,7 @@ where K: Collapse } /// A small hashtable-like map with byte sized key indecies. -#[derive(Debug, Clone, PartialEq, Eq, Hash, Default)] +#[derive(Debug, Clone, PartialEq, Eq, Hash)] #[cfg_attr(feature="serde", derive(serde::Serialize, serde::Deserialize))] // TODO: Replace with `SmallVec<[Page; 1]>` when feature that adds `smallvec` is enabled (this will allocate the first page on the stack, and the rest on the heap. pub struct Map(Vec>); @@ -449,6 +449,14 @@ where K: Collapse } } +impl Default for Map +{ + fn default() -> Self + { + Self::new() + } +} + impl IntoIterator for Map { type Item= (K,V);