From 58ee74cb58ee65d074ae6a7e2a9e29e857ab003f Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Thu, 6 Aug 2026 14:50:18 +0200 Subject: [PATCH] fix(clients/windows): clippy's manual_is_multiple_of on the rescan tick MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `cargo clippy -p punktfunk-client-windows -- -D warnings` fails on main with the pinned 1.96.0 toolchain: `ticks % 5 == 0` trips `manual_is_multiple_of`. Pre-existing and not from this branch — found while gating the launcher work on .173, because neither macOS nor Linux ever compiles this crate. Clippy's own suggestion, applied verbatim. --- clients/windows/src/app/connect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/windows/src/app/connect.rs b/clients/windows/src/app/connect.rs index af2ba382..6f43b049 100644 --- a/clients/windows/src/app/connect.rs +++ b/clients/windows/src/app/connect.rs @@ -560,7 +560,7 @@ fn wake_and_connect( None => {} } ticks += 1; - if ticks % 5 == 0 { + if ticks.is_multiple_of(5) { rescan.request(); } std::thread::sleep(Duration::from_secs(1));