QuackatronHQ / Gigarepo

Using ordered iteration methods on arbitrarily ordered iterator RS-W1081
Anti-pattern
Major
1 occurrence in this check
Called .take_while(..) on an iterator produced by HashSet::drain
276        let mut area = HashSet::new();
277        loop {
278            if queue.is_empty() {
279                break area.drain().take_while(|pt: &MapPoint| pt.x > 0).collect();280            } else {
281                let last = queue.pop().unwrap_or_else(Default::default);
282                area.insert(last);