mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
chore: Clippy fixes
This commit is contained in:
@@ -212,11 +212,7 @@ impl Service {
|
||||
root_summary.inaccessible_children.into_iter().collect();
|
||||
|
||||
// TODO refactor this with Vec::peek_mut once it's stabilized
|
||||
loop {
|
||||
let Some(layer) = queue.last_mut() else {
|
||||
break;
|
||||
};
|
||||
|
||||
while let Some(layer) = queue.last_mut() {
|
||||
let Some(SpaceChild { room_id, via }) = layer.pop() else {
|
||||
// If this layer is empty, discard it from the queue and continue
|
||||
queue.pop();
|
||||
|
||||
Reference in New Issue
Block a user