tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 2c6164735559b0ecdf88c1bc653350d1b87839f6
parent cea0ec28335c03e4b1c7b9bfc52b3b2b64619351
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:
Mscripts/maint/geoip/geoip-db-tool/src/main.rs | 2+-
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();