mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-03-03 23:07:10 +00:00
fix bfs ordering
This commit is contained in:
parent
bea16f151f
commit
abd6132c03
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ fn sort_bfs(paths: &[&'static [u8]]) -> Vec<(usize, &'static [u8])> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// The shorter path goes first
|
// The shorter path goes first
|
||||||
(Some(_), None) => return std::cmp::Ordering::Less,
|
(None, Some(_)) => return std::cmp::Ordering::Less,
|
||||||
(None, Some(_)) => return std::cmp::Ordering::Greater,
|
(Some(_), None) => return std::cmp::Ordering::Greater,
|
||||||
(None, None) => return std::cmp::Ordering::Equal,
|
(None, None) => return std::cmp::Ordering::Equal,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue