aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/router.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/router.rs b/src/router.rs
index 940bda0..f0ba97e 100644
--- a/src/router.rs
+++ b/src/router.rs
@@ -165,9 +165,7 @@ impl Router {
.insert(
route.into(),
Arc::new(AsyncMutex::new(Box::new(
- move |context: RouteContext<'_>| {
- Box::pin(handler(context).into_future())
- },
+ move |context: RouteContext<'_>| handler(context).into_future(),
))),
)
.unwrap();