mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
cleanup
This commit is contained in:
parent
0e4a542cfb
commit
d751bd08bf
6 changed files with 10 additions and 9 deletions
|
@ -269,7 +269,7 @@ fn main_loop_inner(
|
|||
&& pending_libraries.is_empty()
|
||||
&& in_flight_libraries == 0
|
||||
{
|
||||
let n_packages: usize = state.workspaces.iter().map(|it| it.count()).sum();
|
||||
let n_packages: usize = state.workspaces.iter().map(|it| it.n_packages()).sum();
|
||||
if state.options.show_workspace_loaded {
|
||||
let msg = format!("workspace loaded, {} rust packages", n_packages);
|
||||
show_message(req::MessageType::Info, msg, msg_sender);
|
||||
|
|
|
@ -211,7 +211,7 @@ impl WorldSnapshot {
|
|||
} else {
|
||||
res.push_str("workspaces:\n");
|
||||
for w in self.workspaces.iter() {
|
||||
res += &format!("{} packages loaded\n", w.count());
|
||||
res += &format!("{} packages loaded\n", w.n_packages());
|
||||
}
|
||||
}
|
||||
res.push_str("\nanalysis:\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue