Clean up code
Clean up warnings on newer Rust versions. Drop some no-longer used tables and columns
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user