about summary refs log tree commit diff
path: root/crates/rust-analyzer/src/dispatch.rs
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2022-10-26 17:40:41 +0300
committerLaurențiu Nicola <lnicola@dend.ro>2022-10-26 17:40:41 +0300
commit8807fc4cc358fa2152b303df0caa2f5fc9efaa9d (patch)
treeda701483c74d2d402617c2482626b70aa2fff536 /crates/rust-analyzer/src/dispatch.rs
parent26a413e015b7fef4c0edb51bda0d39ab499f4950 (diff)
:arrow_up: rust-analyzer
Diffstat (limited to 'crates/rust-analyzer/src/dispatch.rs')
-rw-r--r--crates/rust-analyzer/src/dispatch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/dispatch.rs b/crates/rust-analyzer/src/dispatch.rs
index f16559148e6..57899b59914 100644
--- a/crates/rust-analyzer/src/dispatch.rs
+++ b/crates/rust-analyzer/src/dispatch.rs
@@ -52,7 +52,7 @@ impl<'a> RequestDispatcher<'a> {
             let _pctx = stdx::panic_context::enter(panic_context);
             f(self.global_state, params)
         };
-        if let Ok(response) = result_to_response::<R>(req.id.clone(), result) {
+        if let Ok(response) = result_to_response::<R>(req.id, result) {
             self.global_state.respond(response);
         }
 
@@ -80,7 +80,7 @@ impl<'a> RequestDispatcher<'a> {
             f(global_state_snapshot, params)
         });
 
-        if let Ok(response) = thread_result_to_response::<R>(req.id.clone(), result) {
+        if let Ok(response) = thread_result_to_response::<R>(req.id, result) {
             self.global_state.respond(response);
         }