diff options
author | 林炳权 <695601626@qq.com> | 2024-04-11 06:08:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 22:08:23 +0000 |
commit | 9304126be5633d4e7d384a8df87f5833a7a145e2 (patch) | |
tree | c074d89e9f2423c5121721ea94b9b4fb3101a482 /ext/node/ops/vm_internal.rs | |
parent | c6f1107e9c8835389479f4f2d80d3539d23df41e (diff) |
chore: update to Rust 1.77.2 (#23262)
update to Rust 1.77.2
---------
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/node/ops/vm_internal.rs')
-rw-r--r-- | ext/node/ops/vm_internal.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/node/ops/vm_internal.rs b/ext/node/ops/vm_internal.rs index 274fac91a..b4bef5adb 100644 --- a/ext/node/ops/vm_internal.rs +++ b/ext/node/ops/vm_internal.rs @@ -155,9 +155,7 @@ impl ContextifyContext { scope: &mut v8::HandleScope<'a>, object: v8::Local<'a, v8::Object>, ) -> Option<&'c ContextifyContext> { - let Some(context) = object.get_creation_context(scope) else { - return None; - }; + let context = object.get_creation_context(scope)?; let context_ptr = context.get_aligned_pointer_from_embedder_data(0); // SAFETY: We are storing a pointer to the ContextifyContext |