refactor(http1): fix redundant imports
This commit is contained in:
@@ -168,7 +168,6 @@ where
|
||||
}
|
||||
|
||||
pub fn read_from_io(&mut self) -> Poll<usize, io::Error> {
|
||||
use bytes::BufMut;
|
||||
self.read_blocked = false;
|
||||
let next = self.read_buf_strategy.next();
|
||||
if self.read_buf.remaining_mut() < next {
|
||||
|
||||
@@ -511,7 +511,7 @@ impl Http1Transaction for Server {
|
||||
}
|
||||
|
||||
fn on_error(err: &::Error) -> Option<MessageHead<Self::Outgoing>> {
|
||||
use ::error::{Kind, Parse};
|
||||
use ::error::Kind;
|
||||
let status = match *err.kind() {
|
||||
Kind::Parse(Parse::Method) |
|
||||
Kind::Parse(Parse::Header) |
|
||||
|
||||
Reference in New Issue
Block a user