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

Remove usage of upcoming keyword async

AsyncResult::async is replaced with AsyncResult::future
This commit is contained in:
Douman
2018-12-05 03:07:59 -05:00
parent b1635bc0e6
commit 0745a1a9f8
9 changed files with 14 additions and 10 deletions

View File

@@ -356,7 +356,7 @@ impl<S: 'static> RouteHandler<S> for Scope<S> {
if self.middlewares.is_empty() {
self.router.handle(&req2)
} else {
AsyncResult::async(Box::new(Compose::new(
AsyncResult::future(Box::new(Compose::new(
req2,
Rc::clone(&self.router),
Rc::clone(&self.middlewares),