Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Sep 13, 2024
1 parent e331ac7 commit d3cb45f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion crates/dap/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,12 @@ impl DebugAdapterClient {
let mut pending_requests = self.transport.pending_requests.lock().await;

pending_requests.clear();
drop(pending_requests);

if let Some(mut adapter) = adapter.take() {
adapter.kill()?;
}

drop(pending_requests);
drop(adapter);

anyhow::Ok(())
Expand Down
10 changes: 4 additions & 6 deletions crates/project/src/dap_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,10 @@ impl DapStore {
bp
});

let mut hash_set = HashSet::default();
for bp in breakpoint_iter {
hash_set.insert(bp);
}

self.breakpoints.insert(project_path.clone(), hash_set);
self.breakpoints.insert(
project_path.clone(),
breakpoint_iter.collect::<HashSet<_>>(),
);
}
}

Expand Down

0 comments on commit d3cb45f

Please sign in to comment.