address clippy and rust lints

This commit is contained in:
Oliver Schneider 2016-05-27 12:35:00 +02:00
parent 64f9d336ac
commit 06b770917b
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46
5 changed files with 4 additions and 7 deletions

View File

@ -1,4 +1,4 @@
//! A pure-Rust frontend for the popular PostgreSQL database.
//! A pure-Rust frontend for the popular `PostgreSQL` database.
//!
//! ```rust,no_run
//! extern crate postgres;

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,5 +1,4 @@
use byteorder::ReadBytesExt;
use net2::TcpStreamExt;
use std::error::Error;
use std::io;
use std::io::prelude::*;
@ -18,7 +17,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;