1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 07:53:00 +01:00

no need for mut

This commit is contained in:
Nikolay Kim 2018-05-01 11:45:46 -07:00
parent 9b6343d54b
commit e01102bda2

View File

@ -196,7 +196,7 @@ impl<S> HttpRequest<S> {
/// 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