mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 20:14:45 +00:00
chore: eliminate clippy warns
This commit is contained in:
parent
1b04cbe802
commit
936b6e2f95
26 changed files with 231 additions and 98 deletions
|
@ -39,7 +39,7 @@ pub fn consts_into_bytes(consts: Vec<ValueObj>, python_ver: PythonVersion) -> Ve
|
|||
|
||||
pub fn jump_abs_addr(minor_ver: u8, op: u8, idx: usize, arg: usize) -> usize {
|
||||
match minor_ver {
|
||||
7 | 8 | 9 => jump_abs_addr_309(Opcode309::from(op), idx, arg),
|
||||
7..=9 => jump_abs_addr_309(Opcode309::from(op), idx, arg),
|
||||
10 => jump_abs_addr_310(Opcode310::from(op), idx, arg),
|
||||
11 => jump_abs_addr_311(Opcode311::from(op), idx, arg),
|
||||
n => todo!("unsupported version: {n}"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue