From 2e1aa5f15bf0a56be0c44a86276cc9efea16ccbc Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Sun, 7 Nov 2021 00:31:39 +0900 Subject: Fix compilation --- helix-term/src/commands/dap.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'helix-term/src/commands/dap.rs') 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; } } -- cgit v1.2.3-70-g09d2