remove stray println commands
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline was successful

This commit is contained in:
Paul Campbell 2023-08-05 07:14:50 +01:00
parent 4e2ce4b89e
commit 96fcf95674

View file

@ -5,14 +5,11 @@ use std::io::{BufRead, BufReader};
use super::Link;
pub fn find(link: &Link, file_name: &str, e: &FileEnv) -> Result<bool> {
println!("Opening file: {file_name}");
let file = (e.open)(file_name)?;
println!("Opened file: {file_name}");
let reader = BufReader::new(file);
for line in reader.lines() {
let line = line?;
if line == link.href {
println!("history: {}", line);
return Ok(true); // is already downloaded
}
}