Fix LimitTreeMap::is_exhausted()

This commit is contained in:
RumovZ 2022-02-03 20:50:05 +01:00
parent 66334203b1
commit d74db4e9d1

View file

@ -164,7 +164,8 @@ impl LimitTreeMap {
}
pub(super) fn is_exhausted(&self, deck_id: DeckId) -> bool {
self.map.get(&deck_id).is_some()
self.map.get(&deck_id).is_none()
}
}
pub(super) fn remaining_node_id(&self, deck_id: DeckId) -> Option<NodeId> {