File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1488,8 +1488,6 @@ impl<VatId> ConnectionState<VatId> {
14881488 }
14891489
14901490 fn import ( state : & Rc < Self > , import_id : ImportId , is_promise : bool ) -> Box < dyn ClientHook > {
1491- let connection_state = state. clone ( ) ;
1492-
14931491 let import_client = {
14941492 match state. imports . borrow_mut ( ) . slots . entry ( import_id) {
14951493 hash_map:: Entry :: Occupied ( occ) => occ
@@ -1498,7 +1496,7 @@ impl<VatId> ConnectionState<VatId> {
14981496 . upgrade ( )
14991497 . expect ( "dangling ref to import client?" ) ,
15001498 hash_map:: Entry :: Vacant ( v) => {
1501- let import_client = ImportClient :: new ( & connection_state , import_id) ;
1499+ let import_client = ImportClient :: new ( state , import_id) ;
15021500 v. insert ( Import :: new ( & import_client) ) ;
15031501 import_client
15041502 }
@@ -1535,7 +1533,7 @@ impl<VatId> ConnectionState<VatId> {
15351533 // PromiseClient holds `client` until it resolves, after which point
15361534 // there is no reason to keep the import alive.
15371535
1538- let client = PromiseClient :: new ( & connection_state , client, Some ( import_id) ) ;
1536+ let client = PromiseClient :: new ( state , client, Some ( import_id) ) ;
15391537
15401538 import. promise_client_to_resolve = Some ( Rc :: downgrade ( & client) ) ;
15411539 let client: Box < Client < VatId > > = Box :: new ( client. into ( ) ) ;
You can’t perform that action at this time.
0 commit comments