on master help sign in
dap: continued: THis check is already done before the match statement
81f51c1Blaž Hrastnik
helix-term/src/application.rs+5−7
@@ -314,7 +314,7 @@ impl Application {
314 if let Some(helix_dap::StackFrame {
314 if let Some(helix_dap::StackFrame {
315 source:
315 source:
316 Some(helix_dap::Source {
316 Some(helix_dap::Source {
317− path: Some(ref src),
317+ path: Some(ref path),
318 ..
318 ..
319 }),
319 }),
320 line,
320 line,
@@ -324,7 +324,7 @@ impl Application {
324 ..
324 ..
325 }) = debugger.stack_pointer
325 }) = debugger.stack_pointer
326 {
326 {
327− let path = src.clone();
327+ let path = path.clone();
328 self.editor
328 self.editor
329 .open(path, helix_view::editor::Action::Replace)
329 .open(path, helix_view::editor::Action::Replace)
330 .unwrap();
330 .unwrap();
@@ -385,11 +385,9 @@ impl Application {
385 .set_status("Debugged application started".to_owned());
385 .set_status("Debugged application started".to_owned());
386 }
386 }
387 Event::Continued(_) => {
387 Event::Continued(_) => {
388− if let Some(debugger) = self.editor.debugger.as_mut() {
389− debugger.stopped_thread = None;
388+ debugger.stopped_thread = None;
390− debugger.stack_pointer = None;
389+ debugger.stack_pointer = None;
391− debugger.is_running = true;
390+ debugger.is_running = true;
392− }
393 }
391 }
394 ev => {
392 ev => {
395 log::warn!("Unhandled event {:?}", ev);
393 log::warn!("Unhandled event {:?}", ev);