You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While experimenting with a non-default hasher and ConcHashMap, I found that the new method doesn't include the hasher in its type signature. As a result, code like the following:
type MyMap = ConcHashMap<(u64, u64), u8>;
...
let x: MyMap = MyMap::new();
doesn't compile because MyMap::new returns a type different than MyMap. This doesn't look intentional and is probably fixed simply by changing the return type of new from ConcHashMap<K, V> to ConcHashMap<K, V, H>.
An easy workaround is to import the Default trait and use MyMap::default() instead of MyMap::new().