aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-dap/src/client.rs')
-rw-r--r--helix-dap/src/client.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index c3840007..9598e24e 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -262,10 +262,11 @@ impl Client {
pub fn reply(
&self,
request_seq: u64,
- command: String,
+ command: &str,
result: core::result::Result<Value, Error>,
) -> impl Future<Output = Result<()>> {
let server_tx = self.server_tx.clone();
+ let command = command.to_string();
async move {
let response = match result {