From c7a046c518174dd2a9dfd2505b81f821e7142a5b Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Mon, 1 Apr 2019 18:33:19 -0700 Subject: [PATCH] refactor(http1): fix redundant imports --- src/proto/h1/io.rs | 1 - src/proto/h1/role.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/proto/h1/io.rs b/src/proto/h1/io.rs index 738bc9939e..3535ae43e3 100644 --- a/src/proto/h1/io.rs +++ b/src/proto/h1/io.rs @@ -168,7 +168,6 @@ where } pub fn read_from_io(&mut self) -> Poll { - use bytes::BufMut; self.read_blocked = false; let next = self.read_buf_strategy.next(); if self.read_buf.remaining_mut() < next { diff --git a/src/proto/h1/role.rs b/src/proto/h1/role.rs index c8390d8df8..db8ff54cc3 100644 --- a/src/proto/h1/role.rs +++ b/src/proto/h1/role.rs @@ -511,7 +511,7 @@ impl Http1Transaction for Server { } fn on_error(err: &::Error) -> Option> { - use ::error::{Kind, Parse}; + use ::error::Kind; let status = match *err.kind() { Kind::Parse(Parse::Method) | Kind::Parse(Parse::Header) |