forked from unom/punktfunk
fix(clients/windows): clippy's manual_is_multiple_of on the rescan tick
`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.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user