Skip to content

Commit 06b7709

Browse files
committed
address clippy and rust lints
1 parent 64f9d33 commit 06b7709

5 files changed

Lines changed: 4 additions & 7 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! A pure-Rust frontend for the popular PostgreSQL database.
1+
//! A pure-Rust frontend for the popular `PostgreSQL` database.
22
//!
33
//! ```rust,no_run
44
//! extern crate postgres;

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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use byteorder::ReadBytesExt;
2-
use net2::TcpStreamExt;
32
use std::error::Error;
43
use std::io;
54
use std::io::prelude::*;
@@ -18,7 +17,7 @@ use std::os::windows::io::{AsRawSocket, RawSocket};
1817

1918
use {SslMode, ConnectParams, ConnectTarget};
2019
use error::ConnectError;
21-
use io::{NegotiateSsl, StreamWrapper};
20+
use io::StreamWrapper;
2221
use message::{self, WriteMessage};
2322
use message::Frontend;
2423

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)