From df19ececc38093e76d8918cce2c63fbdcb38bfca Mon Sep 17 00:00:00 2001 From: Zeke Fast Date: Tue, 23 Sep 2025 15:46:24 +0200 Subject: [PATCH] Fix linting errors after upgrade to 1.90.0. warning: manual implementation of `.is_multiple_of()` --> hagridctl/src/import.rs:95:12 | 95 | if (self.count_total % 10) != 0 { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `!self.count_total.is_multiple_of(10)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_is_multiple_of = note: `#[warn(clippy::manual_is_multiple_of)]` on by default warning: `hagridctl` (bin "hagridctl" test) generated 1 warning (run `cargo clippy --fix --bin "hagridctl" --tests` to apply 1 suggestion) --- hagridctl/src/import.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hagridctl/src/import.rs b/hagridctl/src/import.rs index adcb053..542afb5 100644 --- a/hagridctl/src/import.rs +++ b/hagridctl/src/import.rs @@ -92,7 +92,7 @@ impl<'a> ImportStats<'a> { } fn progress_update(&self) { - if (self.count_total % 10) != 0 { + if !self.count_total.is_multiple_of(10) { return; } self.progress.set_message(&format!(