Skip to content

Commit f3bcd3f

Browse files
authored
Merge pull request #16 from eggyal/derive-clone
Derive `Clone` for `FxHasher`
2 parents 786ccda + 4ac16fb commit f3bcd3f

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)