From 869acee8fb801191e87c39641e883fa455811f02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 20 Oct 2022 21:01:49 +0200 Subject: chore: upgrade rusty_v8 to 0.54.0 (#16368) --- ext/flash/lib.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'ext/flash') diff --git a/ext/flash/lib.rs b/ext/flash/lib.rs index 17e3e8317..9cff7d2fc 100644 --- a/ext/flash/lib.rs +++ b/ext/flash/lib.rs @@ -539,8 +539,7 @@ fn op_flash_make_request<'scope>( |_: &mut v8::HandleScope, args: v8::FunctionCallbackArguments, mut rv: v8::ReturnValue| { - let external: v8::Local = - args.data().unwrap().try_into().unwrap(); + let external: v8::Local = args.data().try_into().unwrap(); // SAFETY: This external is guaranteed to be a pointer to a ServerContext let ctx = unsafe { &mut *(external.value() as *mut ServerContext) }; rv.set_uint32(next_request_sync(ctx)); @@ -561,8 +560,7 @@ fn op_flash_make_request<'scope>( |scope: &mut v8::HandleScope, args: v8::FunctionCallbackArguments, mut rv: v8::ReturnValue| { - let external: v8::Local = - args.data().unwrap().try_into().unwrap(); + let external: v8::Local = args.data().try_into().unwrap(); // SAFETY: This external is guaranteed to be a pointer to a ServerContext let ctx = unsafe { &mut *(external.value() as *mut ServerContext) }; let token = args.get(0).uint32_value(scope).unwrap(); @@ -585,8 +583,7 @@ fn op_flash_make_request<'scope>( |scope: &mut v8::HandleScope, args: v8::FunctionCallbackArguments, mut rv: v8::ReturnValue| { - let external: v8::Local = - args.data().unwrap().try_into().unwrap(); + let external: v8::Local = args.data().try_into().unwrap(); // SAFETY: This external is guaranteed to be a pointer to a ServerContext let ctx = unsafe { &mut *(external.value() as *mut ServerContext) }; -- cgit v1.2.3