From 614dd3c34721a4f97e8c4f1eb89aed4362338ebb Mon Sep 17 00:00:00 2001 From: David Wood Date: Thu, 7 Mar 2019 00:39:50 +0100 Subject: Rename and change `add_roots` to return a `Vec`. --- crates/ra_lsp_server/src/server_world.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_lsp_server/src') diff --git a/crates/ra_lsp_server/src/server_world.rs b/crates/ra_lsp_server/src/server_world.rs index 4625a26a7..7163568b9 100644 --- a/crates/ra_lsp_server/src/server_world.rs +++ b/crates/ra_lsp_server/src/server_world.rs @@ -40,7 +40,7 @@ impl ServerWorldState { let mut roots = Vec::new(); roots.push(root.clone()); for ws in workspaces.iter() { - ws.add_roots(&mut roots); + roots.extend(ws.to_roots()); } let (mut vfs, roots) = Vfs::new(roots); let roots_to_scan = roots.len(); -- cgit v1.2.3