diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-10-20 21:01:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 21:01:49 +0200 |
commit | 869acee8fb801191e87c39641e883fa455811f02 (patch) | |
tree | f14d1c90a81fba151b5dae382272a334956a5743 /ext/flash | |
parent | da906de18437318527ae368932c2c8663db44f76 (diff) |
chore: upgrade rusty_v8 to 0.54.0 (#16368)
<!--
Before submitting a PR, please read http://deno.land/manual/contributing
1. Give the PR a descriptive title.
Examples of good title:
- fix(std/http): Fix race condition in server
- docs(console): Update docstrings
- feat(doc): Handle nested reexports
Examples of bad title:
- fix #7123
- update docs
- fix bugs
2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
-->
Diffstat (limited to 'ext/flash')
-rw-r--r-- | ext/flash/lib.rs | 9 |
1 files changed, 3 insertions, 6 deletions
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<v8::External> = - args.data().unwrap().try_into().unwrap(); + let external: v8::Local<v8::External> = 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<v8::External> = - args.data().unwrap().try_into().unwrap(); + let external: v8::Local<v8::External> = 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<v8::External> = - args.data().unwrap().try_into().unwrap(); + let external: v8::Local<v8::External> = 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) }; |