Skip to content

Commit 4ac16fb

Browse files
committed
Derive Clone for FxHasher
1 parent 5e09ea0 commit 4ac16fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub type FxHashSet<V> = HashSet<V, BuildHasherDefault<FxHasher>>;
5757
/// out-performs an FNV-based hash within rustc itself -- the collision rate is
5858
/// similar or slightly worse than FNV, but the speed of the hash function
5959
/// itself is much higher because it works on up to 8 bytes at a time.
60+
#[derive(Clone)]
6061
pub struct FxHasher {
6162
hash: usize,
6263
}

0 commit comments

Comments
 (0)