From fc3b416970d14a5257a6a846a93abd54fbb503bd Mon Sep 17 00:00:00 2001 From: Aditya Phasu Date: Sun, 15 Oct 2023 03:37:59 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20remove=20unnecessary=20clone=20c?= =?UTF-8?q?all=20(#333)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/results/aggregator.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/results/aggregator.rs b/src/results/aggregator.rs index 8c9be2c..18fdb92 100644 --- a/src/results/aggregator.rs +++ b/src/results/aggregator.rs @@ -88,13 +88,7 @@ pub async fn aggregate( let query: String = query.to_owned(); tasks.push(tokio::spawn(async move { search_engine - .results( - &query, - page, - user_agent.clone(), - request_timeout, - safe_search, - ) + .results(&query, page, user_agent, request_timeout, safe_search) .await })); }