diff options
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop.rs')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index c48c4dd9e..fa07b1942 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs | |||
@@ -411,10 +411,7 @@ struct PoolDispatcher<'a> { | |||
411 | } | 411 | } |
412 | 412 | ||
413 | impl<'a> PoolDispatcher<'a> { | 413 | impl<'a> PoolDispatcher<'a> { |
414 | fn on<'b, R>( | 414 | fn on<R>(&mut self, f: fn(ServerWorld, R::Params) -> Result<R::Result>) -> Result<&mut Self> |
415 | &'b mut self, | ||
416 | f: fn(ServerWorld, R::Params) -> Result<R::Result>, | ||
417 | ) -> Result<&'b mut Self> | ||
418 | where | 415 | where |
419 | R: req::Request, | 416 | R: req::Request, |
420 | R::Params: DeserializeOwned + Send + 'static, | 417 | R::Params: DeserializeOwned + Send + 'static, |