remove stray println commands (#11)
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Reviewed-on: #11 Co-authored-by: Paul Campbell <pcampbell@kemitix.net> Co-committed-by: Paul Campbell <pcampbell@kemitix.net>
This commit is contained in:
parent
4e2ce4b89e
commit
eadf921589
1 changed files with 0 additions and 3 deletions
|
@ -5,14 +5,11 @@ use std::io::{BufRead, BufReader};
|
||||||
use super::Link;
|
use super::Link;
|
||||||
|
|
||||||
pub fn find(link: &Link, file_name: &str, e: &FileEnv) -> Result<bool> {
|
pub fn find(link: &Link, file_name: &str, e: &FileEnv) -> Result<bool> {
|
||||||
println!("Opening file: {file_name}");
|
|
||||||
let file = (e.open)(file_name)?;
|
let file = (e.open)(file_name)?;
|
||||||
println!("Opened file: {file_name}");
|
|
||||||
let reader = BufReader::new(file);
|
let reader = BufReader::new(file);
|
||||||
for line in reader.lines() {
|
for line in reader.lines() {
|
||||||
let line = line?;
|
let line = line?;
|
||||||
if line == link.href {
|
if line == link.href {
|
||||||
println!("history: {}", line);
|
|
||||||
return Ok(true); // is already downloaded
|
return Ok(true); // is already downloaded
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue