From fa0eab2848f6ed73f34bf5d1d7e0fe6bf4e2f6e4 Mon Sep 17 00:00:00 2001 From: Aiden Fox Ivey Date: Fri, 24 Oct 2025 10:29:41 -0400 Subject: ZJIT: Use .first() in lieu of .get(0) --- zjit/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }; -- cgit v1.2.3