Small cleanups in HashMap based off of new rust features.

r? @Gankro @pczarn
Curious if this had any perf motivations, or was just tedious?