diff options
author | Aleksey Kladov <[email protected]> | 2020-10-07 11:15:37 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-10-07 11:15:37 +0100 |
commit | 6219142c96708d8068bcf9eb2a6424882d74094c (patch) | |
tree | 702b1a779d511b9e353b2f8923d5f016f9465c48 /crates/rust-analyzer/src/main_loop.rs | |
parent | 67c76c35a3d047bc5eb21b2d1d77dd3ab0e4bd85 (diff) |
Better progress API
Percentage is a UI concern, the physical fact here is fraction. It's
sad that percentage bleeds into the protocol level, we even duplicated
this bad API ourselves!
Diffstat (limited to 'crates/rust-analyzer/src/main_loop.rs')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index c2d0ac791..4b7ac8224 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -230,7 +230,7 @@ impl GlobalState { | |||
230 | "roots scanned", | 230 | "roots scanned", |
231 | state, | 231 | state, |
232 | Some(format!("{}/{}", n_done, n_total)), | 232 | Some(format!("{}/{}", n_done, n_total)), |
233 | Some(Progress::percentage(n_done, n_total)), | 233 | Some(Progress::fraction(n_done, n_total)), |
234 | ) | 234 | ) |
235 | } | 235 | } |
236 | } | 236 | } |