aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands
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-term/src/commands
parentd943a51e3e8e2cd77cc336c30eb954378e81fe31 (diff)
fix lints
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r--helix-term/src/commands/dap.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs
index 3f925490..a7cf7e81 100644
--- a/helix-term/src/commands/dap.rs
+++ b/helix-term/src/commands/dap.rs
@@ -232,9 +232,10 @@ pub fn dap_start_impl(
if cfg.completion == Some("filename".to_owned())
|| cfg.completion == Some("directory".to_owned())
{
- param = std::fs::canonicalize(x).ok()
+ param = std::fs::canonicalize(x)
+ .ok()
.and_then(|pb| pb.into_os_string().into_string().ok())
- .unwrap_or(x.to_string());
+ .unwrap_or_else(|| x.to_string());
}
}
// For param #0 replace {0} in args