diff --git a/src/xxh32.rs b/src/xxh32.rs index 60cacdc..693259b 100644 --- a/src/xxh32.rs +++ b/src/xxh32.rs @@ -91,6 +91,7 @@ pub fn xxh32(mut input: &[u8], seed: u32) -> u32 { } ///XXH32 Streaming algorithm +#[derive(Clone)] pub struct Xxh32 { total_len: u32, is_large_len: bool, diff --git a/src/xxh64.rs b/src/xxh64.rs index d48f5a7..94c7633 100644 --- a/src/xxh64.rs +++ b/src/xxh64.rs @@ -123,6 +123,7 @@ pub fn xxh64(mut input: &[u8], seed: u64) -> u64 { } ///XXH64 Streaming algorithm +#[derive(Clone)] pub struct Xxh64 { total_len: u64, v1: u64,