Small cleanups in HashMap based off of new rust features.
Merge pull request #19935 from cgaebel/hashmap-tuple-indexing

Small cleanups in HashMap based off of new rust features.

Reviewed-by: Gankro