From e01102bda253bb7dc57fa57a354dd17048bcb959 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 1 May 2018 11:45:46 -0700 Subject: [PATCH] no need for mut --- src/httprequest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httprequest.rs b/src/httprequest.rs index ab2c99fe..3b65d718 100644 --- a/src/httprequest.rs +++ b/src/httprequest.rs @@ -196,7 +196,7 @@ impl HttpRequest { /// Request extensions #[inline] pub fn extensions(&self) -> &Extensions { - &mut self.as_mut().extensions + &self.as_ref().extensions } /// Mutable refernece to a the request's extensions