diff --git a/src/md5.rs b/src/md5.rs index 59433d66..b3806d5b 100644 --- a/src/md5.rs +++ b/src/md5.rs @@ -8,7 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::io::prelude::*; use std::ptr; use std::mem; use std::ops::{Add, Range}; @@ -277,7 +276,7 @@ struct Md5State { } impl Md5State { - #[allow(new_without_default)] + #[allow(new_without_default_derive)] fn new() -> Md5State { Md5State { s0: 0x67452301, diff --git a/src/priv_io.rs b/src/priv_io.rs index 66f5d553..b17257da 100644 --- a/src/priv_io.rs +++ b/src/priv_io.rs @@ -1,4 +1,6 @@ use byteorder::ReadBytesExt; +// this import needs to stay to support pre 1.9 users +#[allow(unused_imports)] use net2::TcpStreamExt; use std::error::Error; use std::io; @@ -18,7 +20,7 @@ use std::os::windows::io::{AsRawSocket, RawSocket}; use {SslMode, ConnectParams, ConnectTarget}; use error::ConnectError; -use io::{NegotiateSsl, StreamWrapper}; +use io::StreamWrapper; use message::{self, WriteMessage}; use message::Frontend; diff --git a/src/rows.rs b/src/rows.rs index 9ae2c5de..79c39992 100644 --- a/src/rows.rs +++ b/src/rows.rs @@ -7,7 +7,7 @@ use std::fmt; use std::ops::Deref; use std::slice; -use {Result, Transaction, DbErrorNew, SessionInfoNew, RowsNew, LazyRowsNew, StatementInternals, +use {Result, Transaction, SessionInfoNew, RowsNew, LazyRowsNew, StatementInternals, WrongTypeNew}; use types::{FromSql, SessionInfo, WrongType}; use stmt::{Statement, Column}; diff --git a/src/url.rs b/src/url.rs index cd8c38ae..4c4048c2 100644 --- a/src/url.rs +++ b/src/url.rs @@ -7,7 +7,6 @@ // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::io::prelude::*; use std::str::FromStr; use hex::FromHex;