Fix clippy warnings
commit9939dbf119f5f7820b914785a3550a745d4dbcf2
authorDmitry Sharshakov <d3dx12.xx@gmail.com>
dateSat 4 Sep 2021, 09:08 (5 years ago)
parentcf7237d
helix-term/src/application.rs+1−1
@@ -334,7 +334,7 @@ impl Application {
334334 }
335335 // TODO: fetch breakpoints (in case we're attaching)
336336
337− if let Ok(_) = debugger.configuration_done().await {
337+ if debugger.configuration_done().await.is_ok() {
338338 self.editor
339339 .set_status("Debugged application started".to_owned());
340340 }; // 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) {
471471 Some(thread_id) => thread_id,
472472 None => {
473473 cx.editor
474− .set_error(format!("No thread is currently active"));
474+ .set_error("No thread is currently active".to_owned());
475475 return;
476476 }
477477 };