on master help sign in
clippy lint
bf8437dBlaž Hrastnik
helix-term/src/commands/dap.rs+7−9
@@ -403,15 +403,13 @@ fn debug_parameter_prompt(
403 Ok(call)
403 Ok(call)
404 });
404 });
405 cx.jobs.callback(callback);
405 cx.jobs.callback(callback);
406− } else {
407− if let Err(e) = dap_start_impl(
406+ } else if let Err(e) = dap_start_impl(
408− cx,
407+ cx,
409− Some(&config_name),
408+ Some(&config_name),
410− None,
409+ None,
411− Some(params.iter().map(|x| x.as_str()).collect()),
410+ Some(params.iter().map(|x| x.as_str()).collect()),
412− ) {
411+ ) {
413− cx.editor.set_error(e.to_string());
412+ cx.editor.set_error(e.to_string());
414− }
415 }
413 }
416 },
414 },
417 )
415 )