Skip to content

Commit 126d800

Browse files
committed
Fix warnings
1 parent c59799e commit 126d800

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

postgres-shared/src/params/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ impl IntoConnectParams for String {
168168

169169
impl IntoConnectParams for Url {
170170
fn into_connect_params(self) -> Result<ConnectParams, Box<Error + Sync + Send>> {
171-
let Url { host, port, user, path: url::Path { mut path, query: options, .. }, .. } = self;
171+
let Url { host, port, user, path: url::Path { path, query: options, .. }, .. } = self;
172172

173173
let mut builder = ConnectParams::builder();
174174

postgres/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ use postgres_shared::rows::RowData;
9696
use error::{Error, ConnectError, SqlState, DbError};
9797
use tls::TlsHandshake;
9898
use notification::{Notifications, Notification};
99-
use params::{ConnectParams, IntoConnectParams, User};
99+
use params::{IntoConnectParams, User};
100100
use priv_io::MessageStream;
101101
use rows::{Rows, LazyRows};
102102
use stmt::{Statement, Column};

postgres/src/priv_io.rs

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ use error::ConnectError;
1818
use tls::TlsStream;
1919
use params::{ConnectParams, Host};
2020

21-
const DEFAULT_PORT: u16 = 5432;
2221
const MESSAGE_HEADER_SIZE: usize = 5;
2322

2423
pub struct MessageStream {

0 commit comments

Comments
 (0)