diff --git a/src/main.rs b/src/main.rs index 346f414..531ed25 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,11 +39,11 @@ fn main() -> anyhow::Result<()> { let mut index: HashMap = HashMap::with_capacity(argument.capacity); - 'l: for line in BufReader::new(File::open(&argument.source)?).lines() { - let l = line?; + 'l: for l in BufReader::new(File::open(&argument.source)?).lines() { + let line = l?; if let Some(ref t) = now { - if !l.contains(t) { + if !line.contains(t) { if is_debug_d { debug::info(&format!("Record time mismatch time filter {t}")) } @@ -51,7 +51,7 @@ fn main() -> anyhow::Result<()> { } } - let host = l + let host = line .split_whitespace() .next() .map(|s| s.into())