]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
geoip: Fix cargo clippy warning
authorDavid Goulet <dgoulet@torproject.org>
Tue, 30 Sep 2025 13:15:20 +0000 (09:15 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Tue, 30 Sep 2025 13:15:20 +0000 (09:15 -0400)
Signed-off-by: David Goulet <dgoulet@torproject.org>
scripts/maint/geoip/geoip-db-tool/src/main.rs

index 169e9dd5ced95f8095e377b7ae2b26090c43014f..8e3a11fab9177aa5682202c37adfb96c6a75a2b3 100644 (file)
@@ -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();