From d4ed1cd2fab576a6da4969a834ececd52f7bd0e2 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 19 Mar 2022 23:13:02 +0000 Subject: [PATCH] Allow swapping out the hasher --- agb/src/hash_map.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/agb/src/hash_map.rs b/agb/src/hash_map.rs index 30028c04..f0b0ca85 100644 --- a/agb/src/hash_map.rs +++ b/agb/src/hash_map.rs @@ -228,10 +228,13 @@ impl NodeStorage { } } -pub struct HashMap { +pub struct HashMap> +where + H: BuildHasher, +{ nodes: NodeStorage, - hasher: BuildHasherDefault, + hasher: H, } impl HashMap {