Skip to content

Commit fa0eab2

Browse files
aidenfoxiveyk0kubun
authored andcommitted
ZJIT: Use .first() in lieu of .get(0)
1 parent aabec60 commit fa0eab2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zjit/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,7 @@ fn function_stub_hit_body(cb: &mut CodeBlock, iseq_call: &IseqCallRef) -> Result
20572057

20582058
// We currently don't support JIT-to-JIT calls for ISEQs with optional arguments.
20592059
// So we only need to use jit_entry_ptrs[0] for now. TODO(Shopify/ruby#817): Support optional arguments.
2060-
let Some(&jit_entry_ptr) = jit_entry_ptrs.get(0) else {
2060+
let Some(&jit_entry_ptr) = jit_entry_ptrs.first() else {
20612061
return Err(CompileError::JitToJitOptional)
20622062
};
20632063

0 commit comments

Comments
 (0)