diff options
-rw-r--r-- | helix-term/src/application.rs | 2 | ||||
-rw-r--r-- | helix-term/src/commands/dap.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 5fc35977..112bd334 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -334,7 +334,7 @@ impl Application { } // TODO: fetch breakpoints (in case we're attaching) - if let Ok(_) = debugger.configuration_done().await { + if debugger.configuration_done().await.is_ok() { self.editor .set_status("Debugged application started".to_owned()); }; // TODO: do we need to handle error? diff --git a/helix-term/src/commands/dap.rs b/helix-term/src/commands/dap.rs index 082e2c7a..f67669d9 100644 --- a/helix-term/src/commands/dap.rs +++ b/helix-term/src/commands/dap.rs @@ -471,7 +471,7 @@ pub fn dap_switch_stack_frame(cx: &mut Context) { Some(thread_id) => thread_id, None => { cx.editor - .set_error(format!("No thread is currently active")); + .set_error("No thread is currently active".to_owned()); return; } }; |