aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_batch
diff options
context:
space:
mode:
authorDavid Wood <[email protected]>2019-03-06 23:39:50 +0000
committerDavid Wood <[email protected]>2019-03-07 00:05:07 +0000
commit614dd3c34721a4f97e8c4f1eb89aed4362338ebb (patch)
treef8d353555372c6dc36c1321e3771a7fb71eaea44 /crates/ra_batch
parent00d927a1885ec2938d3365a8e136993445b437f5 (diff)
Rename and change `add_roots` to return a `Vec`.
Diffstat (limited to 'crates/ra_batch')
-rw-r--r--crates/ra_batch/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_batch/src/lib.rs b/crates/ra_batch/src/lib.rs
index 2db038063..c6d10107d 100644
--- a/crates/ra_batch/src/lib.rs
+++ b/crates/ra_batch/src/lib.rs
@@ -99,7 +99,7 @@ impl BatchDatabase {
99 let ws = ProjectWorkspace::discover(root.as_ref())?; 99 let ws = ProjectWorkspace::discover(root.as_ref())?;
100 let mut roots = Vec::new(); 100 let mut roots = Vec::new();
101 roots.push(root.clone()); 101 roots.push(root.clone());
102 ws.add_roots(&mut roots); 102 roots.extend(ws.to_roots());
103 let (mut vfs, roots) = Vfs::new(roots); 103 let (mut vfs, roots) = Vfs::new(roots);
104 let mut load = |path: &Path| { 104 let mut load = |path: &Path| {
105 let vfs_file = vfs.load(path); 105 let vfs_file = vfs.load(path);