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