CompactOrderedHashMap::contains_key with String keys cannot be called with &str
#340 · Rust · ★ 28 · BSD-3-Clause · updated 1mo ago
A CompactOrderedHashMap<String, _> has a contains_key method that expects a &String. this means we cannot call method with a &str: if map.contains_key("foo") // error! if map.contains_key(&"foo".to_string()) // works but requires constructing a new object We should review the…
replies in ~5d5/8 outside PRs mergednobody circling
Cleared 2m ago