diff --git a/src/lib.rs b/src/lib.rs index 23581f5..dd6ca7d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -88,6 +88,7 @@ use std::fmt::Debug; use std::hash::BuildHasher; use std::hash::Hash; +#[derive(Clone)] pub struct DefaultHashBuilder; impl BuildHasher for DefaultHashBuilder { @@ -133,6 +134,7 @@ impl Ord for Node { } } +#[derive(Clone)] pub struct HashRing { hash_builder: S, ring: Vec>,