Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable cloning EntityHashMap and PreHashMap (#11178)
# Objective - `EntityHashMap`, `EntityHashSet` and `PreHashMap` are currently not Cloneable because of a missing trivial `Clone` bound for `EntityHash` and `PreHash`. This PR makes them Cloneable. (the parent struct `hashbrown::HashMap` requires the `HashBuilder` to be `Clone` for the `HashMap` to be `Clone`, see: https://github.com/rust-lang/hashbrown/blob/master/src/map.rs#L195) ## Solution - Add a `Clone` bound to `PreHash` and `EntityHash` --------- Co-authored-by: Charles Bournhonesque <cbournhonesque@snapchat.com>
- Loading branch information