Clean up code

Clean up warnings on newer Rust versions. Drop some no-longer used
tables and columns
This commit is contained in:
jude
2026-05-16 18:20:00 +01:00
parent 9c6c324b02
commit 16786fdc9e
13 changed files with 42 additions and 50 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ impl IpBlocking {
fn contains<I: Into<u32>>(&self, ip: I) -> bool {
let ip: u32 = ip.into();
let mut prev_index = self.upper_ips.len() - 1;
let _prev_index = self.upper_ips.len() - 1;
let mut index = self.upper_ips.len() / 2;
loop {
if self.upper_ips[index] <= ip && self.lower_ips[index] >= ip {