Skip to content

Commit

Permalink
refactor(http1): fix redundant imports
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Apr 2, 2019
1 parent edf551b commit c7a046c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/proto/h1/io.rs
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/proto/h1/role.rs
Expand Up @@ -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) |
Expand Down

0 comments on commit c7a046c

Please sign in to comment.