From 0b8d6d8dcd60f8f9c136078983f5199af3dd0689 Mon Sep 17 00:00:00 2001 From: Jan Ferdinand Sauer Date: Sun, 22 Sep 2024 02:41:39 +0200 Subject: [PATCH] style: Simplify numeric bindings in match arms --- tasm-lib/src/list/higher_order/map.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasm-lib/src/list/higher_order/map.rs b/tasm-lib/src/list/higher_order/map.rs index 107ef53a..80e47358 100644 --- a/tasm-lib/src/list/higher_order/map.rs +++ b/tasm-lib/src/list/higher_order/map.rs @@ -126,9 +126,9 @@ impl BasicSnippet for ChainMap { }; let pop_input_lists = match NUM_INPUT_LISTS { 0 => triton_asm!(), - i if 0 < i && i <= 5 => triton_asm!(pop { i }), - i if 5 < i && i <= 10 => triton_asm!(pop 5 pop { i - 5 }), - i if 10 < i && i <= 15 => triton_asm!(pop 5 pop 5 pop { i - 10 }), + i @ 0..=5 => triton_asm!(pop { i }), + i @ 6..=10 => triton_asm!(pop 5 pop { i - 5 }), + i @ 11..=15 => triton_asm!(pop 5 pop 5 pop { i - 10 }), _ => panic!("too many input lists"), };