commit bf44a9ac17822a5c77269e8643a85e9c2d123796
parent 3eacdedf947a67b6e064a1f3b3ace56bbef40473
Author: David Goulet <dgoulet@torproject.org>
Date: Tue, 30 Sep 2025 09:15:20 -0400
geoip: Fix cargo clippy warning
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/maint/geoip/geoip-db-tool/src/main.rs b/scripts/maint/geoip/geoip-db-tool/src/main.rs
@@ -175,7 +175,7 @@ fn convert(args: Args) -> std::io::Result<()> {
let num_blocks = blocks.len();
for nb in blocks {
n += 1;
- if n % 100000 == 0 {
+ if n.is_multiple_of(100000) {
println!("{n}/{num_blocks}");
}
let start = nb.net.network();