From c6538e561d716e6945c06a26587c9908a010ce50 Mon Sep 17 00:00:00 2001 From: raphTec Date: Mon, 14 Mar 2022 23:47:16 +0100 Subject: [PATCH] Fix lint warning (remove brackets) --- src/scraper.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scraper.rs b/src/scraper.rs index 27f9041..9d76f6d 100644 --- a/src/scraper.rs +++ b/src/scraper.rs @@ -250,9 +250,9 @@ impl Scraper { // it is pushed into the channel unconditionally. // we want to process its links, but maybe not download it. // all other links are filtered before they are added to the channel. - let filter_rules_match = (depth > 0 + let filter_rules_match = depth > 0 || (!scraper.args.exclude.is_match(url.as_str()) - && scraper.args.include.is_match(url.as_str()))); + && scraper.args.include.is_match(url.as_str())); if !scraper.args.dry_run && filter_rules_match { match response.filename { Some(filename) => {