diff --git a/src/ext/h1_reason_phrase.rs b/src/ext/h1_reason_phrase.rs index 06265c9a3f..8837ae4580 100644 --- a/src/ext/h1_reason_phrase.rs +++ b/src/ext/h1_reason_phrase.rs @@ -1,5 +1,3 @@ -use std::convert::TryFrom; - use bytes::Bytes; /// A reason phrase in an HTTP/1 response. diff --git a/src/proto/h1/encode.rs b/src/proto/h1/encode.rs index 2491b6b7b6..fe582901ea 100644 --- a/src/proto/h1/encode.rs +++ b/src/proto/h1/encode.rs @@ -436,8 +436,6 @@ impl std::error::Error for NotEof {} #[cfg(test)] mod tests { - use std::iter::FromIterator; - use bytes::BufMut; use http::{ header::{ diff --git a/tests/client.rs b/tests/client.rs index 0eff87f1f9..43e1f08acb 100644 --- a/tests/client.rs +++ b/tests/client.rs @@ -5,7 +5,6 @@ use std::convert::Infallible; use std::fmt; use std::future::Future; use std::io::{Read, Write}; -use std::iter::FromIterator; use std::net::{SocketAddr, TcpListener}; use std::pin::Pin; use std::thread; diff --git a/tests/server.rs b/tests/server.rs index edf569a860..dcbe669565 100644 --- a/tests/server.rs +++ b/tests/server.rs @@ -1,7 +1,6 @@ #![deny(warnings)] #![deny(rust_2018_idioms)] -use std::convert::TryInto; use std::future::Future; use std::io::{self, Read, Write}; use std::net::TcpListener as StdTcpListener;