aboutsummaryrefslogtreecommitdiff
path: root/helix-dap/src/client.rs
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-08-12 14:01:54 +0000
committerBlaž Hrastnik2021-08-20 04:43:54 +0000
commit5fd0a2ddda5710a12f0f76267420bde11a825b21 (patch)
tree8742017ae80062188423fd96c487e50b0824760d /helix-dap/src/client.rs
parentfd709bc56dae91fdd183486360dd08ac535c5c5b (diff)
format
Diffstat (limited to 'helix-dap/src/client.rs')
-rw-r--r--helix-dap/src/client.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index 9f269a53..37f264ec 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -272,7 +272,7 @@ impl Client {
.expect("Expected initialized event")
{
Payload::Event(Event { event, .. }) => {
- if event == "initialized".to_owned() {
+ if event == *"initialized" {
Ok(())
} else {
unreachable!()
@@ -308,7 +308,7 @@ impl Client {
pub async fn wait_for_stopped(&mut self) -> Result<()> {
match self.server_rx.recv().await.expect("Expected stopped event") {
Payload::Event(Event { event, .. }) => {
- if event == "stopped".to_owned() {
+ if event == *"stopped" {
Ok(())
} else {
unreachable!()