1
0
Fork 0
mirror of https://gitlab.com/news-flash/article_scraper.git synced 2025-07-07 16:15:32 +02:00

fix save_html returning error even it succeeded

This commit is contained in:
Jan Lukas Gernert 2018-12-07 15:31:09 +01:00
parent aa26e099df
commit 02356a51aa

View file

@ -30,6 +30,7 @@ impl Article {
let path = path.join(file_name);
let mut html_file = std::fs::File::create(&path).context(ScraperErrorKind::IO)?;
html_file.write_all(html.as_bytes()).context(ScraperErrorKind::IO)?;
return Ok(())
}
}