mirror of
https://gitlab.com/keys.openpgp.org/hagrid.git
synced 2025-10-05 16:12:44 +02:00
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:
@@ -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!(
|
||||
|
Reference in New Issue
Block a user