fix: Fix progress reporting getting stuck

This commit is contained in:
Lukas Wirth 2024-01-17 13:23:00 +01:00
parent 2b02df27c5
commit 0bdbf497b6
6 changed files with 66 additions and 32 deletions

View file

@ -318,7 +318,7 @@ fn load_crate_graph(
for task in receiver {
match task {
vfs::loader::Message::Progress { n_done, n_total, .. } => {
if n_done == n_total {
if n_done == Some(n_total) {
break;
}
}