Fix warnings

This commit is contained in:
Steven Fackler 2017-02-15 21:48:38 -08:00
parent c59799e376
commit 126d80003c
3 changed files with 2 additions and 3 deletions

View File

@ -168,7 +168,7 @@ impl IntoConnectParams for String {
impl IntoConnectParams for Url {
fn into_connect_params(self) -> Result<ConnectParams, Box<Error + Sync + Send>> {
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();

View File

@ -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};

View File

@ -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 {