From be62f49b7e8d3a55a1ee3c9db226b3da87fbdf02 Mon Sep 17 00:00:00 2001 From: david-perez Date: Thu, 28 Oct 2021 18:44:04 +0200 Subject: [PATCH] Fix typo in sealed trait used in `Handler` (#430) --- src/handler/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/handler/mod.rs b/src/handler/mod.rs index 6d82d47b..b59fba9b 100644 --- a/src/handler/mod.rs +++ b/src/handler/mod.rs @@ -23,9 +23,9 @@ pub use self::into_service::IntoService; pub(crate) mod sealed { #![allow(unreachable_pub, missing_docs, missing_debug_implementations)] - pub trait HiddentTrait {} + pub trait HiddenTrait {} pub struct Hidden; - impl HiddentTrait for Hidden {} + impl HiddenTrait for Hidden {} } /// Trait for async functions that can be used to handle requests. @@ -39,7 +39,7 @@ pub trait Handler: Clone + Send + Sized + 'static { // This seals the trait. We cannot use the regular "sealed super trait" // approach due to coherence. #[doc(hidden)] - type Sealed: sealed::HiddentTrait; + type Sealed: sealed::HiddenTrait; /// Call the handler with the given request. async fn call(self, req: Request) -> Response;