From c30d5f732ebf2f1d560d1ae830bd69c19bb7e151 Mon Sep 17 00:00:00 2001 From: Kenneth Gitere Date: Tue, 5 May 2020 12:29:08 +0300 Subject: [PATCH] Fix test data --- src/extractor.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/extractor.rs b/src/extractor.rs index 93548be..2355939 100644 --- a/src/extractor.rs +++ b/src/extractor.rs @@ -96,10 +96,7 @@ impl Extractor { } } - pub async fn download_images<'a>( - &'a mut self, - article_origin: &'a Url, - ) -> async_std::io::Result<()> { + pub async fn download_images(&mut self, article_origin: &Url) -> async_std::io::Result<()> { let mut async_download_tasks = Vec::with_capacity(self.img_urls.len()); self.extract_img_urls(); println!("Downloading images to res/"); @@ -243,7 +240,7 @@ mod test {

Starting out

Some Lorem Ipsum text here

Observe this picture

- Random image + Random image