diff options
| author | mo8it <mo8it@proton.me> | 2024-10-17 15:03:43 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-10-17 15:03:43 +0200 |
| commit | 7e2f56f41a89213d3ae60a069402a25b570f0cca (patch) | |
| tree | d10a0d1f54311edda5bea57644f929152e8e7dd2 /src/collections.rs | |
| parent | e90f5f03f3da639bf3157aec12ebf0cec62ac7ae (diff) | |
Use the default hasher
Diffstat (limited to 'src/collections.rs')
| -rw-r--r-- | src/collections.rs | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/collections.rs b/src/collections.rs deleted file mode 100644 index 3f2841e..0000000 --- a/src/collections.rs +++ /dev/null @@ -1,9 +0,0 @@ -use foldhash::fast::FixedState; - -/// DOS attacks aren't a concern for Rustlings. Therefore, we use `foldhash` with a fixed state. -pub type HashSet<T> = std::collections::HashSet<T, FixedState>; - -#[inline] -pub fn hash_set_with_capacity<T>(capacity: usize) -> HashSet<T> { - HashSet::with_capacity_and_hasher(capacity, FixedState::default()) -} |
