Small cleanups in HashMap based off of new rust features.

r? @Gankro @pczarn
LLVM has historically been bad at removing useless indirection, and this is definitely a useless indirection.