mirror of
https://github.com/actix/actix-web.git
synced 2025-01-19 21:55:31 +00:00
no need for mut
This commit is contained in:
parent
9b6343d54b
commit
e01102bda2
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ impl<S> HttpRequest<S> {
|
||||||
/// Request extensions
|
/// Request extensions
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn extensions(&self) -> &Extensions {
|
pub fn extensions(&self) -> &Extensions {
|
||||||
&mut self.as_mut().extensions
|
&self.as_ref().extensions
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Mutable refernece to a the request's extensions
|
/// Mutable refernece to a the request's extensions
|
||||||
|
|
Loading…
Reference in a new issue