Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
clippy
  • Loading branch information
ShaharNaveh committed Apr 15, 2026
commit 0adcd507140d896ce6dbdb8e7f19b5e276e9093a
3 changes: 1 addition & 2 deletions crates/stdlib/src/_opcode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ mod _opcode {
bytecode::{AnyInstruction, AnyOpcode, InstructionMetadata, Opcode, PseudoOpcode},
};

#[must_use]
fn try_from_i32(raw: i32) -> Result<AnyOpcode, ()> {
u16::try_from(raw)
.map_err(|_| ())?
Expand Down Expand Up @@ -103,7 +102,7 @@ mod _opcode {

#[pyfunction]
fn has_arg(opcode: i32) -> bool {
try_from_i32(opcode).map_or(false, |_| opcode > HAVE_ARGUMENT)
try_from_i32(opcode).is_ok_and(|_| opcode > HAVE_ARGUMENT)
}

#[pyfunction]
Expand Down
Loading