summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAiden Fox Ivey <aiden@aidenfoxivey.com>2025-10-24 10:29:41 -0400
committerTakashi Kokubun <takashikkbn@gmail.com>2025-10-27 12:56:41 -0700
commitfa0eab2848f6ed73f34bf5d1d7e0fe6bf4e2f6e4 (patch)
treef9b71219f8d542b4d76f9e6bb1f4d7ad9cb328e0
parentaabec60c2e4fd96ceb8239b45ed2388309239742 (diff)
ZJIT: Use .first() in lieu of .get(0)
-rw-r--r--zjit/src/codegen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/zjit/src/codegen.rs b/zjit/src/codegen.rs
index e16588e3e3..1179b9bf16 100644
--- a/zjit/src/codegen.rs
+++ b/zjit/src/codegen.rs
@@ -2057,7 +2057,7 @@ fn function_stub_hit_body(cb: &mut CodeBlock, iseq_call: &IseqCallRef) -> Result
// We currently don't support JIT-to-JIT calls for ISEQs with optional arguments.
// So we only need to use jit_entry_ptrs[0] for now. TODO(Shopify/ruby#817): Support optional arguments.
- let Some(&jit_entry_ptr) = jit_entry_ptrs.get(0) else {
+ let Some(&jit_entry_ptr) = jit_entry_ptrs.first() else {
return Err(CompileError::JitToJitOptional)
};