diff --git a/Cargo.toml b/Cargo.toml index 96ce6fd..5da3f56 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rqlite_client" -version = "0.0.1-alpha.12" +version = "0.0.1-alpha.13" authors = ["Markus Kolb"] description = "rqlite database client with optional extra convenience" documentation = "https://docs.rs/rqlite_client/" diff --git a/README.md b/README.md index 6fb39cf..c889cf1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![Maintenance](https://img.shields.io/badge/maintenance-activly--developed-brightgreen.svg) [![Rust](https://github.com/kolbma/rs_rqlite_client/actions/workflows/rust.yml/badge.svg)](https://github.com/kolbma/rs_rqlite_client/actions/workflows/rust.yml) -# rqlite_client v0.0.1-alpha.12 +# rqlite_client v0.0.1-alpha.13 This is an __rqlite__ database client library with optional extra _convenience_. @@ -256,8 +256,8 @@ See [`Query`](https://docs.rs/rqlite_client/latest/rqlite_client/struct.Query.ht ## Current version -[Source https://github.com/kolbma/rs_rqlite_client/tree/v0.0.1-alpha.12](https://github.com/kolbma/rs_rqlite_client/tree/v0.0.1-alpha.12) -[Download https://github.com/kolbma/rs_rqlite_client/releases/tag/v0.0.1-alpha.12](https://github.com/kolbma/rs_rqlite_client/releases/tag/v0.0.1-alpha.12) +[Source https://github.com/kolbma/rs_rqlite_client/tree/v0.0.1-alpha.13](https://github.com/kolbma/rs_rqlite_client/tree/v0.0.1-alpha.13) +[Download https://github.com/kolbma/rs_rqlite_client/releases/tag/v0.0.1-alpha.13](https://github.com/kolbma/rs_rqlite_client/releases/tag/v0.0.1-alpha.13) ## License diff --git a/src/request.rs b/src/request.rs index 53dd927..6805574 100644 --- a/src/request.rs +++ b/src/request.rs @@ -73,11 +73,10 @@ pub(crate) fn user_agent(connection: Option<&Connection>) -> ureq::Agent { }) .or_else(Connection::detect_proxy); - let agent = if let Some(proxy) = proxy { + let agent = if let Some(proxy) = &proxy { log::debug!("try proxy {proxy}"); tracing::debug!("try proxy {proxy}"); - #[allow(clippy::needless_borrows_for_generic_args)] - match ureq::Proxy::new(&proxy) { + match ureq::Proxy::new(proxy) { Ok(ureq_proxy) => { log::info!("use proxy {proxy}"); tracing::info!("use roxy {proxy}");