summaryrefslogtreecommitdiff
path: root/ops/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-10-20 21:01:49 +0200
committerGitHub <noreply@github.com>2022-10-20 21:01:49 +0200
commit869acee8fb801191e87c39641e883fa455811f02 (patch)
treef14d1c90a81fba151b5dae382272a334956a5743 /ops/lib.rs
parentda906de18437318527ae368932c2c8663db44f76 (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 'ops/lib.rs')
-rw-r--r--ops/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ops/lib.rs b/ops/lib.rs
index adc50e69c..e8ea1e969 100644
--- a/ops/lib.rs
+++ b/ops/lib.rs
@@ -229,7 +229,7 @@ fn codegen_v8_async(
use #core::futures::FutureExt;
// SAFETY: #core guarantees args.data() is a v8 External pointing to an OpCtx for the isolates lifetime
let ctx = unsafe {
- &*(#core::v8::Local::<#core::v8::External>::cast(args.data().unwrap_unchecked()).value()
+ &*(#core::v8::Local::<#core::v8::External>::cast(args.data()).value()
as *const #core::_ops::OpCtx)
};
let op_id = ctx.id;
@@ -557,7 +557,7 @@ fn codegen_v8_sync(
quote! {
// SAFETY: #core guarantees args.data() is a v8 External pointing to an OpCtx for the isolates lifetime
let ctx = unsafe {
- &*(#core::v8::Local::<#core::v8::External>::cast(args.data().unwrap_unchecked()).value()
+ &*(#core::v8::Local::<#core::v8::External>::cast(args.data()).value()
as *const #core::_ops::OpCtx)
};