Skip to content

Commit 70d22d5

Browse files
committed
remove workaround that's no longer necessary with the new borrow checker
1 parent 30356b1 commit 70d22d5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

capnp-rpc/src/rpc.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,17 +2756,13 @@ impl<VatId> Drop for PromiseClient<VatId> {
27562756
// object may actually outlive the import.
27572757
let slots = &mut self.connection_state.imports.borrow_mut().slots;
27582758
if let Some(import) = slots.get_mut(&id) {
2759-
let mut drop_it = false;
27602759
if let Some(c) = &import.app_client {
27612760
if let Some(cs) = c.upgrade() {
27622761
if cs.get_ptr() == self_ptr {
2763-
drop_it = true;
2762+
import.app_client = None;
27642763
}
27652764
}
27662765
}
2767-
if drop_it {
2768-
import.app_client = None;
2769-
}
27702766
}
27712767
}
27722768

0 commit comments

Comments
 (0)