From 66e41ed5739bbf4f85ea9986103a98d1e4029ce5 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Tue, 13 Oct 2026 15:40:09 +0200 Subject: [PATCH] Satisfy clippy in the hand module Co-Authored-By: Claude Opus 5.5 --- crates/horizon-client/src/game/hand.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/horizon-client/src/game/hand.rs b/crates/horizon-client/src/game/hand.rs index 237512c45..f4c43042c 100644 --- a/crates/horizon-client/src/game/hand.rs +++ b/crates/horizon-client/src/game/hand.rs @@ -60,7 +60,7 @@ impl Game<'_> { // cracking particles. let d = &self.clicks.destroying; if d.active && d.ticks > ticks { - let (pos, first) = (d.pos, (d.ticks as u32 - 1) % 4 == 0); + let (pos, first) = (d.pos, (d.ticks as u32 - 1).is_multiple_of(4)); let state = self.world.block(pos[0], pos[1], pos[2]); if first { let sounds = self.res.facts.get(state).sounds.clone(); @@ -80,7 +80,7 @@ impl Game<'_> { self.clicks.miss_time = 10000; } let d = &self.clicks.destroying; - self.mining = d.active.then(|| Mining { + self.mining = d.active.then_some(Mining { pos: d.pos, progress: d.progress, ticks: d.ticks as u32,