diff --git a/postgres-shared/src/params/mod.rs b/postgres-shared/src/params/mod.rs index 67e3aaae..d7caa316 100644 --- a/postgres-shared/src/params/mod.rs +++ b/postgres-shared/src/params/mod.rs @@ -168,7 +168,7 @@ impl IntoConnectParams for String { impl IntoConnectParams for Url { fn into_connect_params(self) -> Result> { - let Url { host, port, user, path: url::Path { mut path, query: options, .. }, .. } = self; + let Url { host, port, user, path: url::Path { path, query: options, .. }, .. } = self; let mut builder = ConnectParams::builder(); diff --git a/postgres/src/lib.rs b/postgres/src/lib.rs index 1ef8e533..f35c1299 100644 --- a/postgres/src/lib.rs +++ b/postgres/src/lib.rs @@ -96,7 +96,7 @@ use postgres_shared::rows::RowData; use error::{Error, ConnectError, SqlState, DbError}; use tls::TlsHandshake; use notification::{Notifications, Notification}; -use params::{ConnectParams, IntoConnectParams, User}; +use params::{IntoConnectParams, User}; use priv_io::MessageStream; use rows::{Rows, LazyRows}; use stmt::{Statement, Column}; diff --git a/postgres/src/priv_io.rs b/postgres/src/priv_io.rs index aa796859..a0c5bf67 100644 --- a/postgres/src/priv_io.rs +++ b/postgres/src/priv_io.rs @@ -18,7 +18,6 @@ use error::ConnectError; use tls::TlsStream; use params::{ConnectParams, Host}; -const DEFAULT_PORT: u16 = 5432; const MESSAGE_HEADER_SIZE: usize = 5; pub struct MessageStream {