Skip to content

Commit

Permalink
Derive Clone for FxHasher
Browse files Browse the repository at this point in the history
  • Loading branch information
eggyal committed Apr 22, 2021
1 parent 5e09ea0 commit 4ac16fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ pub type FxHashSet<V> = HashSet<V, BuildHasherDefault<FxHasher>>;
/// 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,
}
Expand Down

0 comments on commit 4ac16fb

Please sign in to comment.