Fix warnings
This commit is contained in:
parent
c59799e376
commit
126d80003c
@ -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();
|
||||
|
||||
|
@ -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};
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user