From 4ac16fba3d44d763eb6764a63f8669ce9a5c916a Mon Sep 17 00:00:00 2001 From: Alan Egerton Date: Thu, 22 Apr 2021 07:27:04 +0100 Subject: [PATCH] Derive `Clone` for `FxHasher` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index ee9ad31..dc54c7c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -57,6 +57,7 @@ pub type FxHashSet = HashSet>; /// out-performs an FNV-based hash within rustc itself -- the collision rate is /// similar or slightly worse than FNV, but the speed of the hash function /// itself is much higher because it works on up to 8 bytes at a time. +#[derive(Clone)] pub struct FxHasher { hash: usize, }