From 873cef6fbba01c99733c97378b5f001779604cf4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 6 Apr 2023 08:34:24 +0000 Subject: fix(context): custom parameters format for easy lifetimes --- src/handler/partial.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/handler/partial.rs') diff --git a/src/handler/partial.rs b/src/handler/partial.rs index 3d5bfb2..1d55b93 100644 --- a/src/handler/partial.rs +++ b/src/handler/partial.rs @@ -18,6 +18,6 @@ use crate::context::RouteContext; -pub trait Partial: FnMut(RouteContext<'_>) -> String + Send + Sync {} +pub trait Partial: FnMut(RouteContext) -> String + Send + Sync {} -impl Partial for T where T: FnMut(RouteContext<'_>) -> String + Send + Sync {} +impl Partial for T where T: FnMut(RouteContext) -> String + Send + Sync {} -- cgit v1.2.3