diff options
Diffstat (limited to 'ext/ffi/lib.rs')
-rw-r--r-- | ext/ffi/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/ffi/lib.rs b/ext/ffi/lib.rs index 3ad75e245..3de204ef3 100644 --- a/ext/ffi/lib.rs +++ b/ext/ffi/lib.rs @@ -706,8 +706,7 @@ fn make_sync_fn<'s>( |scope: &mut v8::HandleScope, args: v8::FunctionCallbackArguments, mut rv: v8::ReturnValue| { - let external: v8::Local<v8::External> = - args.data().unwrap().try_into().unwrap(); + let external: v8::Local<v8::External> = args.data().try_into().unwrap(); // SAFETY: The pointer will not be deallocated until the function is // garbage collected. let symbol = unsafe { &*(external.value() as *const Symbol) }; |