From b1f894a50074933ec3d924775d792671091b10df Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Fri, 18 Nov 2022 00:22:11 +0100 Subject: [PATCH] Fix unused import if compiling with default features --- axum-extra/src/routing/mod.rs | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/axum-extra/src/routing/mod.rs b/axum-extra/src/routing/mod.rs index a17751c8..23a9dde2 100644 --- a/axum-extra/src/routing/mod.rs +++ b/axum-extra/src/routing/mod.rs @@ -1,7 +1,7 @@ //! Additional types for defining routes. use axum::{ - handler::{Handler, HandlerWithoutStateExt}, + handler::HandlerWithoutStateExt, http::Request, response::{IntoResponse, Redirect}, routing::{any, MethodRouter}, @@ -40,7 +40,7 @@ pub trait RouterExt: sealed::Sealed { #[cfg(feature = "typed-routing")] fn typed_get(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath; @@ -53,7 +53,7 @@ pub trait RouterExt: sealed::Sealed { #[cfg(feature = "typed-routing")] fn typed_delete(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath; @@ -66,7 +66,7 @@ pub trait RouterExt: sealed::Sealed { #[cfg(feature = "typed-routing")] fn typed_head(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath; @@ -79,7 +79,7 @@ pub trait RouterExt: sealed::Sealed { #[cfg(feature = "typed-routing")] fn typed_options(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath; @@ -92,7 +92,7 @@ pub trait RouterExt: sealed::Sealed { #[cfg(feature = "typed-routing")] fn typed_patch(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath; @@ -105,7 +105,7 @@ pub trait RouterExt: sealed::Sealed { #[cfg(feature = "typed-routing")] fn typed_post(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath; @@ -118,7 +118,7 @@ pub trait RouterExt: sealed::Sealed { #[cfg(feature = "typed-routing")] fn typed_put(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath; @@ -131,7 +131,7 @@ pub trait RouterExt: sealed::Sealed { #[cfg(feature = "typed-routing")] fn typed_trace(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath; @@ -183,7 +183,7 @@ where #[cfg(feature = "typed-routing")] fn typed_get(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath, { @@ -193,7 +193,7 @@ where #[cfg(feature = "typed-routing")] fn typed_delete(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath, { @@ -203,7 +203,7 @@ where #[cfg(feature = "typed-routing")] fn typed_head(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath, { @@ -213,7 +213,7 @@ where #[cfg(feature = "typed-routing")] fn typed_options(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath, { @@ -223,7 +223,7 @@ where #[cfg(feature = "typed-routing")] fn typed_patch(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath, { @@ -233,7 +233,7 @@ where #[cfg(feature = "typed-routing")] fn typed_post(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath, { @@ -243,7 +243,7 @@ where #[cfg(feature = "typed-routing")] fn typed_put(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath, { @@ -253,7 +253,7 @@ where #[cfg(feature = "typed-routing")] fn typed_trace(self, handler: H) -> Self where - H: Handler, + H: axum::handler::Handler, T: SecondElementIs

+ 'static, P: TypedPath, {