From 37c0f387e8ef0e70df242074f9ebde2d49ae84ba Mon Sep 17 00:00:00 2001 From: yggverse Date: Mon, 9 Jun 2025 13:33:20 +0300 Subject: [PATCH] rename variable --- src/main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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())