remove deprecated use of `std::collections::hashmap::HashMap::get`