diff --git a/postgres-protocol/src/authentication/sasl.rs b/postgres-protocol/src/authentication/sasl.rs index 4e34a8c8..bcd2c4b6 100644 --- a/postgres-protocol/src/authentication/sasl.rs +++ b/postgres-protocol/src/authentication/sasl.rs @@ -257,7 +257,7 @@ impl ScramSha256 { return Err(io::Error::new( io::ErrorKind::Other, format!("SCRAM error: {}", e), - )) + )); } ServerFinalMessage::Verifier(verifier) => verifier, }; diff --git a/postgres/src/client.rs b/postgres/src/client.rs index 2e181cc9..26a0b788 100644 --- a/postgres/src/client.rs +++ b/postgres/src/client.rs @@ -1,11 +1,11 @@ use fallible_iterator::FallibleIterator; use futures::{Async, Future, Poll, Stream}; use std::io::{self, Read}; +use tokio_postgres::tls::{MakeTlsConnect, TlsConnect}; use tokio_postgres::types::{ToSql, Type}; use tokio_postgres::Error; #[cfg(feature = "runtime")] -use tokio_postgres::{Socket}; -use tokio_postgres::tls::{MakeTlsConnect, TlsConnect}; +use tokio_postgres::Socket; #[cfg(feature = "runtime")] use crate::Config;