Skip to content

Commit

Permalink
fix: clippy thx
Browse files Browse the repository at this point in the history
  • Loading branch information
astuyve committed Oct 11, 2024
1 parent dad738a commit 20c8e2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dogstatsd/src/datadog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
};
Expand Down Expand Up @@ -107,7 +107,7 @@ impl DdApi {
fn build_client(https_proxy: Option<String>) -> Result<reqwest::Client, reqwest::Error> {
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()
}
Expand Down

0 comments on commit 20c8e2f

Please sign in to comment.