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:
@@ -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()),
|
||||
|
Reference in New Issue
Block a user