CompactOrderedHashMap::contains_key with String keys cannot be called with &str
#340 · Rust · ★ 29 · BSD-3-Clause · updated 3mo 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 ~5d4/5 outside PRs mergedhas CONTRIBUTINGnobody circling
Cleared 3m ago