diff options
author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-08-06 09:54:51 +0100 |
---|---|---|
committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-08-06 09:57:16 +0100 |
commit | d751bd08bfa36bd8abdcbb4fa466022720094b7d (patch) | |
tree | f514f0f74b4da150dc6086438879731a13ef74e1 /crates/ra_lsp_server/src | |
parent | 0e4a542cfb366898a4d53701c50ae4d1732d7c53 (diff) |
cleanup
Diffstat (limited to 'crates/ra_lsp_server/src')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop.rs | 2 | ||||
-rw-r--r-- | crates/ra_lsp_server/src/world.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 8e830c8b8..9a38d43d2 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs | |||
@@ -269,7 +269,7 @@ fn main_loop_inner( | |||
269 | && pending_libraries.is_empty() | 269 | && pending_libraries.is_empty() |
270 | && in_flight_libraries == 0 | 270 | && in_flight_libraries == 0 |
271 | { | 271 | { |
272 | let n_packages: usize = state.workspaces.iter().map(|it| it.count()).sum(); | 272 | let n_packages: usize = state.workspaces.iter().map(|it| it.n_packages()).sum(); |
273 | if state.options.show_workspace_loaded { | 273 | if state.options.show_workspace_loaded { |
274 | let msg = format!("workspace loaded, {} rust packages", n_packages); | 274 | let msg = format!("workspace loaded, {} rust packages", n_packages); |
275 | show_message(req::MessageType::Info, msg, msg_sender); | 275 | show_message(req::MessageType::Info, msg, msg_sender); |
diff --git a/crates/ra_lsp_server/src/world.rs b/crates/ra_lsp_server/src/world.rs index 1d7755910..b57cdf925 100644 --- a/crates/ra_lsp_server/src/world.rs +++ b/crates/ra_lsp_server/src/world.rs | |||
@@ -211,7 +211,7 @@ impl WorldSnapshot { | |||
211 | } else { | 211 | } else { |
212 | res.push_str("workspaces:\n"); | 212 | res.push_str("workspaces:\n"); |
213 | for w in self.workspaces.iter() { | 213 | for w in self.workspaces.iter() { |
214 | res += &format!("{} packages loaded\n", w.count()); | 214 | res += &format!("{} packages loaded\n", w.n_packages()); |
215 | } | 215 | } |
216 | } | 216 | } |
217 | res.push_str("\nanalysis:\n"); | 217 | res.push_str("\nanalysis:\n"); |