fix: use is_multiple_of method instead of manual modulo check to satisfy newer clippy lint requirements

This commit is contained in:
floor-licker
2025-12-06 06:07:08 -05:00
parent c69ea614a8
commit d5929a1a14
+1 -1
View File
@@ -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 {}",