diff options
author | Aleksey Kladov <[email protected]> | 2019-02-18 12:30:58 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-18 12:30:58 +0000 |
commit | def7bc0ec55a0afb2cb577e2e80d95b33a1cf115 (patch) | |
tree | 1e29426acbe0e1f633e888f1929308be8725f3f6 /crates/ra_vfs/src/lib.rs | |
parent | 9da37051911132279131530e958b0adc0a5a9aaa (diff) |
drop dependency on thread_worker
Diffstat (limited to 'crates/ra_vfs/src/lib.rs')
-rw-r--r-- | crates/ra_vfs/src/lib.rs | 4 |
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) { |