Closed
Description
In methods like std::vec::Vec::drain_filter
, the element is removed if the closure returns true
. But in hashbrown::HashMap::drain_filter
(#135) and hashbrown::HashSet::drain_filter
(#179), the element is removed if the closure returns false
. 😦
Update: This is fixed in hashbrown 0.9.0. When upgrading from earlier versions, all callers must flip the meaning of the predicate passed to the drain_filter
method. I have submitted pull requests to all the affected crates I could find.
Metadata
Metadata
Assignees
Labels
No labels