From 20c8e2f23af98271d980d1443b5fc4c8e263c2b9 Mon Sep 17 00:00:00 2001 From: AJ Stuyvenberg Date: Fri, 11 Oct 2024 14:11:42 -0400 Subject: [PATCH] fix: clippy thx --- dogstatsd/src/datadog.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dogstatsd/src/datadog.rs b/dogstatsd/src/datadog.rs index 4b35ea5dd..e73024458 100644 --- a/dogstatsd/src/datadog.rs +++ b/dogstatsd/src/datadog.rs @@ -24,7 +24,7 @@ impl DdApi { let client = match Self::build_client(https_proxy) { Ok(client) => client, Err(e) => { - error!("Unable to parse proxy URL, no proxy will be use"); + error!("Unable to parse proxy URL, no proxy will be used. {:?}", e); reqwest::Client::new() } }; @@ -107,7 +107,7 @@ impl DdApi { fn build_client(https_proxy: Option) -> Result { let mut builder = reqwest::Client::builder(); if let Some(proxy) = https_proxy { - builder = builder.proxy(reqwest::Proxy::https(&proxy)?); + builder = builder.proxy(reqwest::Proxy::https(proxy)?); } builder.build() }