From 8dde0de5301af586d98d544573f255cb0ec2261b Mon Sep 17 00:00:00 2001 From: Fangdun Tsai Date: Sat, 16 Dec 2023 14:55:34 +0800 Subject: [PATCH] docs: improve --- viz-core/src/handler/fn_ext.rs | 1 - viz-core/src/handler/transform.rs | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/viz-core/src/handler/fn_ext.rs b/viz-core/src/handler/fn_ext.rs index 25ae732f..a0677874 100644 --- a/viz-core/src/handler/fn_ext.rs +++ b/viz-core/src/handler/fn_ext.rs @@ -7,6 +7,5 @@ pub trait FnExt: Clone + Send + Sync + 'static { type Output; /// Performs the call operation. - #[must_use] async fn call(&self, req: Request) -> Self::Output; } diff --git a/viz-core/src/handler/transform.rs b/viz-core/src/handler/transform.rs index 8cdc0dc5..6df16280 100644 --- a/viz-core/src/handler/transform.rs +++ b/viz-core/src/handler/transform.rs @@ -4,6 +4,7 @@ pub trait Transform { /// A new handler. type Output; - /// Transforms `self` and wraps [Handler][super::Handler] to a new handler. + /// Transforms `self` and wraps [`Handler`][super::Handler] to a new handler. + #[must_use] fn transform(&self, h: H) -> Self::Output; }