aboutsummaryrefslogtreecommitdiff
path: root/helix-dap
diff options
context:
space:
mode:
authorDmitry Sharshakov2021-09-26 18:54:36 +0000
committerDmitry Sharshakov2021-09-26 18:54:36 +0000
commit814dcfa8d234e5031313b050b851641da8e6359b (patch)
tree37c4e1edb4693f113877a0c6cd5c1954594b1bbe /helix-dap
parentd943a51e3e8e2cd77cc336c30eb954378e81fe31 (diff)
fix lints
Diffstat (limited to 'helix-dap')
-rw-r--r--helix-dap/src/client.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-dap/src/client.rs b/helix-dap/src/client.rs
index 832a70c2..72aff5d2 100644
--- a/helix-dap/src/client.rs
+++ b/helix-dap/src/client.rs
@@ -54,7 +54,7 @@ impl Client {
port_arg: Option<String>,
id: usize,
) -> Result<(Self, UnboundedReceiver<Payload>)> {
- if command == "" {
+ if command.is_empty() {
return Result::Err(Error::Other(anyhow!("Command not provided")));
}
if transport == "tcp" && port_arg.is_some() {