aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_lsp_server
diff options
context:
space:
mode:
authorAlan Du <[email protected]>2018-10-16 18:31:16 +0100
committerAlan Du <[email protected]>2018-10-18 00:42:23 +0100
commit2ae9dfa812ccf18867373f77a106161378a6d91d (patch)
treec3ff8017bfa41dd31de37de6716eb97db132ebcf /crates/ra_lsp_server
parent2268a2f8c6557301ecdcaeb4074331a0bd37dccd (diff)
clippy: Fix new_ret_no_self
Diffstat (limited to 'crates/ra_lsp_server')
-rw-r--r--crates/ra_lsp_server/src/main_loop/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/mod.rs b/crates/ra_lsp_server/src/main_loop/mod.rs
index a11baf4aa..2623ab84e 100644
--- a/crates/ra_lsp_server/src/main_loop/mod.rs
+++ b/crates/ra_lsp_server/src/main_loop/mod.rs
@@ -355,7 +355,7 @@ impl<'a> PoolDispatcher<'a> {
355 }; 355 };
356 match req.cast::<R>() { 356 match req.cast::<R>() {
357 Ok((id, params)) => { 357 Ok((id, params)) => {
358 let (handle, token) = JobHandle::new(); 358 let (handle, token) = JobHandle::new_pair();
359 let world = self.world.snapshot(); 359 let world = self.world.snapshot();
360 let sender = self.sender.clone(); 360 let sender = self.sender.clone();
361 self.pool.spawn(move || { 361 self.pool.spawn(move || {