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