From 53b560b87004bf56c93323b728d26edf977864ea Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 16 Dec 2023 21:14:38 +0900 Subject: [PATCH] refactor(proto): use HeaderMap type without client feature (#3491) --- src/proto/h1/role.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/proto/h1/role.rs b/src/proto/h1/role.rs index 0e7b3296e5..ede6fabc8f 100644 --- a/src/proto/h1/role.rs +++ b/src/proto/h1/role.rs @@ -7,11 +7,11 @@ use std::time::Instant; use bytes::Bytes; use bytes::BytesMut; +#[cfg(feature = "client")] +use http::header::Entry; #[cfg(feature = "server")] use http::header::ValueIter; -use http::header::{self, HeaderName, HeaderValue}; -#[cfg(feature = "client")] -use http::{header::Entry, HeaderMap}; +use http::header::{self, HeaderMap, HeaderName, HeaderValue}; use http::{Method, StatusCode, Version}; use crate::body::DecodedLength;