From daed502ee5d055203c45a7eeea4e163a5b520549 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 18 Jun 2018 01:03:07 +0600 Subject: [PATCH] make mut api private --- src/httprequest.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/httprequest.rs b/src/httprequest.rs index 50154432..e201d9cb 100644 --- a/src/httprequest.rs +++ b/src/httprequest.rs @@ -265,7 +265,7 @@ impl HttpRequest { /// ///This is intended to be used by middleware. #[inline] - pub fn headers_mut(&mut self) -> &mut HeaderMap { + pub(crate) fn headers_mut(&mut self) -> &mut HeaderMap { &mut self.as_mut().headers } @@ -450,7 +450,7 @@ impl HttpRequest { /// Get mutable reference to request's Params. #[inline] - pub fn match_info_mut(&mut self) -> &mut Params { + pub(crate) fn match_info_mut(&mut self) -> &mut Params { unsafe { mem::transmute(&mut self.as_mut().params) } }