on master help sign in
Fix clippy warnings
9939dbfDmitry Sharshakov
helix-term/src/application.rs+1−1
@@ -334,7 +334,7 @@ impl Application {
334 }
334 }
335 // TODO: fetch breakpoints (in case we're attaching)
335 // TODO: fetch breakpoints (in case we're attaching)
336
336
337− if let Ok(_) = debugger.configuration_done().await {
337+ if debugger.configuration_done().await.is_ok() {
338 self.editor
338 self.editor
339 .set_status("Debugged application started".to_owned());
339 .set_status("Debugged application started".to_owned());
340 }; // TODO: do we need to handle error?
340 }; // TODO: do we need to handle error?
helix-term/src/commands/dap.rs+1−1
@@ -471,7 +471,7 @@ pub fn dap_switch_stack_frame(cx: &mut Context) {
471 Some(thread_id) => thread_id,
471 Some(thread_id) => thread_id,
472 None => {
472 None => {
473 cx.editor
473 cx.editor
474− .set_error(format!("No thread is currently active"));
474+ .set_error("No thread is currently active".to_owned());
475 return;
475 return;
476 }
476 }
477 };
477 };