diff --git a/src/faststr_map.rs b/src/faststr_map.rs index 1514fc8..b288533 100644 --- a/src/faststr_map.rs +++ b/src/faststr_map.rs @@ -6,7 +6,7 @@ use fxhash::FxHashMap; /// This is an optimized version of TypeMap to FastStr that eliminates the need to Box the values. /// /// This map is suitable for T that impls both From and Into. -#[derive(Debug, Default)] +#[derive(Debug, Default, Clone)] pub struct FastStrMap { inner: FxHashMap, } diff --git a/src/type_map.rs b/src/type_map.rs index 052639c..2523c6b 100644 --- a/src/type_map.rs +++ b/src/type_map.rs @@ -63,7 +63,7 @@ impl<'a, K, V> Entry<'a, K, V> { } } -#[derive(Debug, Default)] +#[derive(Debug, Default, Clone)] pub struct TypeMap { inner: FxHashMap, }