From 6d14d78d7ac776571c6bd2175b0cf180939e5e4d Mon Sep 17 00:00:00 2001 From: Ethan Brierley Date: Thu, 17 Oct 2024 09:53:04 +0100 Subject: [PATCH] refactor: fix `clippy::needless_borrows_for_generic_args` (#190) --- reqwest-retry/tests/all/retry.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reqwest-retry/tests/all/retry.rs b/reqwest-retry/tests/all/retry.rs index 902b8a5..15744a9 100644 --- a/reqwest-retry/tests/all/retry.rs +++ b/reqwest-retry/tests/all/retry.rs @@ -199,7 +199,7 @@ async fn assert_retry_on_request_timeout() { .build(); let resp = client - .get(&format!("{}/foo", server.uri())) + .get(format!("{}/foo", server.uri())) .timeout(std::time::Duration::from_millis(10)) .send() .await @@ -254,7 +254,7 @@ async fn assert_retry_on_incomplete_message() { .build(); let resp = client - .get(&format!("{}/foo", uri)) + .get(format!("{}/foo", uri)) .timeout(std::time::Duration::from_millis(100)) .send() .await @@ -305,7 +305,7 @@ async fn assert_retry_on_hyper_canceled() { .build(); let resp = client - .get(&format!("{}/foo", uri)) + .get(format!("{}/foo", uri)) .timeout(std::time::Duration::from_millis(100)) .send() .await @@ -353,7 +353,7 @@ async fn assert_retry_on_connection_reset_by_peer() { .build(); let resp = client - .get(&format!("{}/foo", uri)) + .get(format!("{}/foo", uri)) .timeout(std::time::Duration::from_millis(100)) .send() .await