Small cleanups in HashMap based off of new rust features.

r? @Gankro @pczarn
I can add a comment.