mirror of
https://github.com/fafhrd91/actix-web
synced 2025-01-18 22:01:50 +01:00
no need for mut
This commit is contained in:
parent
9b6343d54b
commit
e01102bda2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user