aboutsummaryrefslogtreecommitdiff
path: root/src/handler/partial.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-06 08:34:24 +0000
committerFuwn <[email protected]>2023-04-06 08:34:24 +0000
commit873cef6fbba01c99733c97378b5f001779604cf4 (patch)
tree4dc531b2005740ec5048350ecdae7ba15836e058 /src/handler/partial.rs
parentfeat(cargo): bump 0.3.1 -> 0.3.2 (diff)
downloadwindmark-873cef6fbba01c99733c97378b5f001779604cf4.tar.xz
windmark-873cef6fbba01c99733c97378b5f001779604cf4.zip
fix(context): custom parameters format for easy lifetimes
Diffstat (limited to 'src/handler/partial.rs')
-rw-r--r--src/handler/partial.rs4
1 files changed, 2 insertions, 2 deletions
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<T> Partial for T where T: FnMut(RouteContext<'_>) -> String + Send + Sync {}
+impl<T> Partial for T where T: FnMut(RouteContext) -> String + Send + Sync {}