Merge pull request #185 from oli-obk/master

address clippy and rust lints
This commit is contained in:
Steven Fackler 2016-05-30 08:51:13 -07:00
commit 8a0fed9749
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

@ -7,7 +7,6 @@
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, 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;