Small cleanups in HashMap based off of new rust features.

r? @Gankro @pczarn
In isolation, we've replaced the helpful name `found_match` with some more opaque if statement.