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

clippy warnings

This commit is contained in:
Nikolay Kim
2018-02-26 14:33:56 -08:00
parent 644f1a9518
commit 72aa2d9eae
33 changed files with 117 additions and 143 deletions

View File

@@ -179,14 +179,10 @@ impl<S: 'static> Compose<S> {
mws: Rc<Vec<Box<Middleware<S>>>>,
handler: InnerHandler<S>) -> Self
{
let mut info = ComposeInfo {
count: 0,
req: req,
mws: mws,
handler: handler };
let mut info = ComposeInfo { count: 0, req, mws, handler };
let state = StartMiddlewares::init(&mut info);
Compose {state: state, info: info}
Compose {state, info}
}
}
@@ -308,7 +304,7 @@ impl<S: 'static> WaitingResponse<S> {
RunMiddlewares::init(info, resp),
ReplyItem::Future(fut) =>
ComposeState::Handler(
WaitingResponse { fut: fut, _s: PhantomData }),
WaitingResponse { fut, _s: PhantomData }),
}
}
@@ -353,7 +349,7 @@ impl<S: 'static> RunMiddlewares<S> {
},
Ok(MiddlewareResponse::Future(fut)) => {
return ComposeState::RunMiddlewares(
RunMiddlewares { curr: curr, fut: Some(fut), _s: PhantomData })
RunMiddlewares { curr, fut: Some(fut), _s: PhantomData })
},
};
}