1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-28 15:57:47 +02:00

no need for mut ref

This commit is contained in:
Nikolay Kim
2018-01-03 10:57:57 -08:00
parent ae084d1146
commit 8348c830e2
3 changed files with 72 additions and 60 deletions

View File

@@ -86,7 +86,7 @@ pub struct JsonBody<S, T: DeserializeOwned>{
impl<S, T: DeserializeOwned> JsonBody<S, T> {
/// Create `JsonBody` for request.
pub fn from_request(req: &mut HttpRequest<S>) -> Self {
pub fn from_request(req: &HttpRequest<S>) -> Self {
JsonBody{
limit: 262_144,
req: Some(req.clone()),