From 8784d9261602d3e7d46477af4cd6df24790af279 Mon Sep 17 00:00:00 2001 From: tottoto Date: Sat, 16 Dec 2023 20:01:10 +0900 Subject: [PATCH] fix(proto): use HeaderMap type without client feature --- 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;