diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/router.rs | 4 |
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(); |