Skip to content

Commit 8a0fed9

Browse files
committed
Merge pull request #185 from oli-obk/master
address clippy and rust lints
2 parents 64f9d33 + 0bc8a6e commit 8a0fed9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/md5.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
use std::io::prelude::*;
1211
use std::ptr;
1312
use std::mem;
1413
use std::ops::{Add, Range};
@@ -277,7 +276,7 @@ struct Md5State {
277276
}
278277

279278
impl Md5State {
280-
#[allow(new_without_default)]
279+
#[allow(new_without_default_derive)]
281280
fn new() -> Md5State {
282281
Md5State {
283282
s0: 0x67452301,

src/priv_io.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
use byteorder::ReadBytesExt;
2+
// this import needs to stay to support pre 1.9 users
3+
#[allow(unused_imports)]
24
use net2::TcpStreamExt;
35
use std::error::Error;
46
use std::io;
@@ -18,7 +20,7 @@ use std::os::windows::io::{AsRawSocket, RawSocket};
1820

1921
use {SslMode, ConnectParams, ConnectTarget};
2022
use error::ConnectError;
21-
use io::{NegotiateSsl, StreamWrapper};
23+
use io::StreamWrapper;
2224
use message::{self, WriteMessage};
2325
use message::Frontend;
2426

src/rows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::fmt;
77
use std::ops::Deref;
88
use std::slice;
99

10-
use {Result, Transaction, DbErrorNew, SessionInfoNew, RowsNew, LazyRowsNew, StatementInternals,
10+
use {Result, Transaction, SessionInfoNew, RowsNew, LazyRowsNew, StatementInternals,
1111
WrongTypeNew};
1212
use types::{FromSql, SessionInfo, WrongType};
1313
use stmt::{Statement, Column};

src/url.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
10-
use std::io::prelude::*;
1110
use std::str::FromStr;
1211
use hex::FromHex;
1312

0 commit comments

Comments
 (0)