From 70a9631696d98c3a1158164c4690d0a1e38c1378 Mon Sep 17 00:00:00 2001 From: snek Date: Mon, 15 Jul 2024 09:56:51 -0700 Subject: chore: upgrade dependencies (#24565) rustls + hyper + deno_core --- ext/node/ops/vm_internal.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ext/node') diff --git a/ext/node/ops/vm_internal.rs b/ext/node/ops/vm_internal.rs index afcdc1b9c..a9c13a582 100644 --- a/ext/node/ops/vm_internal.rs +++ b/ext/node/ops/vm_internal.rs @@ -119,7 +119,7 @@ impl ContextifyContext { unsafe { v8_context.set_aligned_pointer_in_embedder_data( 3, - ptr.borrow().unwrap() as *const ContextifyContext as _, + &*ptr.unwrap() as *const ContextifyContext as _, ); } @@ -142,11 +142,10 @@ impl ContextifyContext { .get_private(scope, private_symbol) .and_then(|wrapper| { deno_core::cppgc::try_unwrap_cppgc_object::(scope, wrapper) - .borrow() // SAFETY: the lifetime of the scope does not actually bind to // the lifetime of this reference at all, but the object we read // it from does, so it will be alive at least that long. - .map(|r| unsafe { &*(r as *const _) }) + .map(|r| unsafe { &*(&*r as *const _) }) }) } -- cgit v1.2.3