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)
This commit is contained in:
Zeke Fast
2025-09-23 15:46:24 +02:00
parent 9e0409bbac
commit df19ececc3

View File

@@ -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!(