From d5929a1a14fcc658726eab4cc0be16e86e2ddbd9 Mon Sep 17 00:00:00 2001 From: floor-licker Date: Sat, 6 Dec 2025 06:07:08 -0500 Subject: [PATCH] fix: use is_multiple_of method instead of manual modulo check to satisfy newer clippy lint requirements --- src/book.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/book.rs b/src/book.rs index d94362b..244a97d 100644 --- a/src/book.rs +++ b/src/book.rs @@ -362,7 +362,7 @@ impl OrderBook { // } // AFTER (fast, ~2ns, pure integer): - if tick_size_ticks > 0 && delta.price % tick_size_ticks != 0 { + if tick_size_ticks > 0 && !delta.price.is_multiple_of(tick_size_ticks) { // Price is not aligned to tick size - reject the update warn!( "Rejecting misaligned price: {} not divisible by tick size {}",