aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/commands
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-06 15:31:39 +0000
committerBlaž Hrastnik2021-11-06 15:32:28 +0000
commit2e1aa5f15bf0a56be0c44a86276cc9efea16ccbc (patch)
treedbb379f5799193cfebcb7b88449568e4e79aa13e /helix-term/src/commands
parenta5ea61433c42ec05cd21c8b5c437827a66efb906 (diff)
Fix compilation
Diffstat (limited to 'helix-term/src/commands')
-rw-r--r--helix-term/src/commands/dap.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs
index 23bb3bab..47e1b39f 100644
--- a/helix-term/src/commands/dap.rs
+++ b/helix-term/src/commands/dap.rs
@@ -321,7 +321,7 @@ pub fn dap_launch(cx: &mut Context) {
cx.push_layer(Box::new(Picker::new(
true,
- config.templates.clone(),
+ config.templates,
|template| template.name.as_str().into(),
|editor, template, _action| {
let completions = template.completion.clone();
@@ -560,7 +560,6 @@ pub fn dap_enable_exceptions(cx: &mut Context) {
) {
cx.editor
.set_error(format!("Failed to set up exception breakpoints: {:?}", e));
- return;
}
}
@@ -573,7 +572,6 @@ pub fn dap_disable_exceptions(cx: &mut Context) {
if let Err(e) = block_on(debugger.set_exception_breakpoints(vec![])) {
cx.editor
.set_error(format!("Failed to set up exception breakpoints: {:?}", e));
- return;
}
}