refactor(http1): fix redundant imports

This commit is contained in:
Sean McArthur
2019-04-01 18:33:19 -07:00
parent edf551b55f
commit c7a046c518
2 changed files with 1 additions and 2 deletions

View File

@@ -168,7 +168,6 @@ where
} }
pub fn read_from_io(&mut self) -> Poll<usize, io::Error> { pub fn read_from_io(&mut self) -> Poll<usize, io::Error> {
use bytes::BufMut;
self.read_blocked = false; self.read_blocked = false;
let next = self.read_buf_strategy.next(); let next = self.read_buf_strategy.next();
if self.read_buf.remaining_mut() < next { if self.read_buf.remaining_mut() < next {

View File

@@ -511,7 +511,7 @@ impl Http1Transaction for Server {
} }
fn on_error(err: &::Error) -> Option<MessageHead<Self::Outgoing>> { fn on_error(err: &::Error) -> Option<MessageHead<Self::Outgoing>> {
use ::error::{Kind, Parse}; use ::error::Kind;
let status = match *err.kind() { let status = match *err.kind() {
Kind::Parse(Parse::Method) | Kind::Parse(Parse::Method) |
Kind::Parse(Parse::Header) | Kind::Parse(Parse::Header) |