Skip to content

Commit c7a046c

Browse files
committed
refactor(http1): fix redundant imports
1 parent edf551b commit c7a046c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/proto/h1/io.rs

-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ where
168168
}
169169

170170
pub fn read_from_io(&mut self) -> Poll<usize, io::Error> {
171-
use bytes::BufMut;
172171
self.read_blocked = false;
173172
let next = self.read_buf_strategy.next();
174173
if self.read_buf.remaining_mut() < next {

src/proto/h1/role.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ impl Http1Transaction for Server {
511511
}
512512

513513
fn on_error(err: &::Error) -> Option<MessageHead<Self::Outgoing>> {
514-
use ::error::{Kind, Parse};
514+
use ::error::Kind;
515515
let status = match *err.kind() {
516516
Kind::Parse(Parse::Method) |
517517
Kind::Parse(Parse::Header) |

0 commit comments

Comments
 (0)