diff options
Diffstat (limited to 'helix-term/src/commands.rs')
-rw-r--r-- | helix-term/src/commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index b463da2a..9a8e1ee6 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -4288,10 +4288,10 @@ async fn dap_listen_stopped( .threads() .await .ok() - .and_then(|threads| threads.get(0).and_then(|x| Some(x.clone()))); + .and_then(|threads| threads.get(0).cloned()); if let Some(main) = main { let (a, _) = dbg.stack_trace(main.id).await.unwrap(); - dbg.stack_pointer = a.get(0).and_then(|x| Some(x.clone())); + dbg.stack_pointer = a.get(0).cloned(); } } } |