From 02356a51aac3b39e8952273d72444f99b26140ce Mon Sep 17 00:00:00 2001 From: Jan Lukas Gernert Date: Fri, 7 Dec 2018 15:31:09 +0100 Subject: [PATCH] fix save_html returning error even it succeeded --- src/article.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/article.rs b/src/article.rs index 329c58d..d4204a0 100644 --- a/src/article.rs +++ b/src/article.rs @@ -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(()) } }