Skip to content

Commit

Permalink
remove workaround that's no longer necessary with the new borrow checker
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 3, 2024
1 parent 30356b1 commit 70d22d5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions capnp-rpc/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2756,17 +2756,13 @@ impl<VatId> Drop for PromiseClient<VatId> {
// object may actually outlive the import.
let slots = &mut self.connection_state.imports.borrow_mut().slots;
if let Some(import) = slots.get_mut(&id) {
let mut drop_it = false;
if let Some(c) = &import.app_client {
if let Some(cs) = c.upgrade() {
if cs.get_ptr() == self_ptr {
drop_it = true;
import.app_client = None;
}
}
}
if drop_it {
import.app_client = None;
}
}
}

Expand Down

0 comments on commit 70d22d5

Please sign in to comment.