From 6ec83526122b94fa3afd2a832b98b8ab061ead07 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 18 Jun 2018 01:05:02 +0600 Subject: [PATCH] method only for tests --- src/httprequest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httprequest.rs b/src/httprequest.rs index e201d9cb..519e085f 100644 --- a/src/httprequest.rs +++ b/src/httprequest.rs @@ -264,7 +264,7 @@ impl HttpRequest { ///Returns mutable Request's headers. /// ///This is intended to be used by middleware. - #[inline] + #[cfg(test)] pub(crate) fn headers_mut(&mut self) -> &mut HeaderMap { &mut self.as_mut().headers }