diff options
author | Aleksey Kladov <[email protected]> | 2020-06-24 15:58:49 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-06-24 15:59:15 +0100 |
commit | 6937bcb67d825938d862cd1792af02e00e1d1a06 (patch) | |
tree | 62afb8a2be50f8491dfd33f15d1b96a54b7ae2ab /crates/rust-analyzer/src/main_loop.rs | |
parent | ddc5a3e5679bab2ae574fcfc6b7afcbd31b702bc (diff) |
Less error-prone naming
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index 755fd23b3..b55d45cd3 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -305,18 +305,12 @@ fn loop_turn( | |||
305 | } | 305 | } |
306 | } | 306 | } |
307 | } | 307 | } |
308 | vfs::loader::Message::Progress { n_entries_total, n_entries_done } => { | 308 | vfs::loader::Message::Progress { n_total, n_done } => { |
309 | if n_entries_done == n_entries_total { | 309 | if n_done == n_total { |
310 | loop_state.status = Status::Ready; | 310 | loop_state.status = Status::Ready; |
311 | became_ready = true; | 311 | became_ready = true; |
312 | } | 312 | } |
313 | report_progress( | 313 | report_progress(loop_state, &connection.sender, n_done, n_total, "roots scanned") |
314 | loop_state, | ||
315 | &connection.sender, | ||
316 | n_entries_done, | ||
317 | n_entries_total, | ||
318 | "roots scanned", | ||
319 | ) | ||
320 | } | 314 | } |
321 | }, | 315 | }, |
322 | Event::CheckWatcher(task) => on_check_task(task, global_state, task_sender)?, | 316 | Event::CheckWatcher(task) => on_check_task(task, global_state, task_sender)?, |