aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_vfs/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_vfs/src/lib.rs')
-rw-r--r--crates/ra_vfs/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_vfs/src/lib.rs b/crates/ra_vfs/src/lib.rs
index 3cd11c9f6..808c138df 100644
--- a/crates/ra_vfs/src/lib.rs
+++ b/crates/ra_vfs/src/lib.rs
@@ -92,7 +92,7 @@ impl Vfs {
92 92
93 for root in roots.iter() { 93 for root in roots.iter() {
94 root2files.insert(root, Default::default()); 94 root2files.insert(root, Default::default());
95 worker.sender().send(io::Task::AddRoot { root }).unwrap(); 95 worker.sender.send(io::Task::AddRoot { root }).unwrap();
96 } 96 }
97 let res = Vfs { roots, files: Vec::new(), root2files, worker, pending_changes: Vec::new() }; 97 let res = Vfs { roots, files: Vec::new(), root2files, worker, pending_changes: Vec::new() };
98 let vfs_roots = res.roots.iter().collect(); 98 let vfs_roots = res.roots.iter().collect();
@@ -170,7 +170,7 @@ impl Vfs {
170 } 170 }
171 171
172 pub fn task_receiver(&self) -> &Receiver<VfsTask> { 172 pub fn task_receiver(&self) -> &Receiver<VfsTask> {
173 self.worker.receiver() 173 &self.worker.receiver
174 } 174 }
175 175
176 pub fn handle_task(&mut self, task: VfsTask) { 176 pub fn handle_task(&mut self, task: VfsTask) {