@@ -80,11 +80,11 @@ macro_rules! method_router_chain_method {
8080 #[ must_use]
8181 pub fn $name<T , H , I , D >( mut self , handler: H ) -> Self
8282 where
83- H : CodecHandler <T , I , D , S > + Clone + Send + ' static ,
84- I : Input + Send + ' static ,
85- D : IntoCodecResponse + Send + Sync + ' static ,
83+ H : CodecHandler <T , I , D , S > + Clone + Send + Sync + ' static ,
84+ I : Input + Send + Sync + ' static ,
85+ D : IntoCodecResponse + Send + ' static ,
8686 S : Clone + Send + Sync + ' static ,
87- T : ' static
87+ T : Sync + ' static
8888 {
8989 self . inner = self . inner. $name( CodecHandlerFn :: new( handler) ) ;
9090 self
@@ -99,11 +99,11 @@ macro_rules! method_router_chain_method {
9999 #[ must_use]
100100 pub fn $name<T , H , I , D >( mut self , handler: H ) -> Self
101101 where
102- H : CodecHandler <T , I , D , S > + Clone + Send + ' static ,
103- I : Input + Send + ' static ,
102+ H : CodecHandler <T , I , D , S > + Clone + Send + Sync + ' static ,
103+ I : Input + Send + Sync + ' static ,
104104 D : IntoCodecResponse + Send + ' static ,
105105 S : Clone + Send + Sync + ' static ,
106- T : ' static ,
106+ T : Sync + ' static ,
107107 {
108108 self . inner = self . inner. $name( CodecHandlerFn :: <H , I , D >:: new( handler) ) ;
109109 self
@@ -113,11 +113,11 @@ macro_rules! method_router_chain_method {
113113 #[ must_use]
114114 pub fn $with<T , H , I , D , F >( mut self , handler: H , transform: F ) -> Self
115115 where
116- H : CodecHandler <T , I , D , S > + Clone + Send + ' static ,
117- I : Input + Send + ' static ,
116+ H : CodecHandler <T , I , D , S > + Clone + Send + Sync + ' static ,
117+ I : Input + Send + Sync + ' static ,
118118 D : IntoCodecResponse + Send + ' static ,
119119 S : Clone + Send + Sync + ' static ,
120- T : ' static ,
120+ T : Sync + ' static ,
121121 F : FnOnce ( aide:: transform:: TransformOperation ) -> aide:: transform:: TransformOperation ,
122122 {
123123 self . inner = self . inner. $with( CodecHandlerFn :: <H , I , D >:: new( handler) , transform) ;
@@ -153,11 +153,11 @@ macro_rules! method_router_top_level {
153153 #[ doc = concat!( "Route `" , stringify!( $name) , "` requests to the given handler. See [`axum::routing::" , stringify!( $name) , "`] for more details." ) ]
154154 pub fn $name<T , H , I , D , S >( handler: H ) -> MethodRouter <S , Infallible >
155155 where
156- H : CodecHandler <T , I , D , S > + Clone + Send + ' static ,
157- I : Input + Send + ' static ,
156+ H : CodecHandler <T , I , D , S > + Clone + Send + Sync + ' static ,
157+ I : Input + Send + Sync + ' static ,
158158 D : IntoCodecResponse + Send + ' static ,
159159 S : Clone + Send + Sync + ' static ,
160- T : ' static
160+ T : Sync + ' static
161161 {
162162 MethodRouter :: from( routing:: $name( CodecHandlerFn :: new( handler) ) )
163163 }
@@ -170,11 +170,11 @@ macro_rules! method_router_top_level {
170170 #[ doc = concat!( "Route `" , stringify!( $name) , "` requests to the given handler. See [`axum::routing::" , stringify!( $name) , "`] for more details." ) ]
171171 pub fn $name<T , H , I , D , S >( handler: H ) -> MethodRouter <S , Infallible >
172172 where
173- H : CodecHandler <T , I , D , S > + Clone + Send + ' static ,
174- I : Input + Send + ' static ,
173+ H : CodecHandler <T , I , D , S > + Clone + Send + Sync + ' static ,
174+ I : Input + Send + Sync + ' static ,
175175 D : IntoCodecResponse + Send + ' static ,
176176 S : Clone + Send + Sync + ' static ,
177- T : ' static ,
177+ T : Sync + ' static ,
178178 {
179179 MethodRouter :: from( aide:: axum:: routing:: $name(
180180 CodecHandlerFn :: <H , I , D >:: new( handler) ,
@@ -185,11 +185,11 @@ macro_rules! method_router_top_level {
185185 #[ must_use]
186186 pub fn $with<T , H , I , D , S , F >( handler: H , transform: F ) -> MethodRouter <S , Infallible >
187187 where
188- H : CodecHandler <T , I , D , S > + Clone + Send + ' static ,
189- I : Input + Send + ' static ,
188+ H : CodecHandler <T , I , D , S > + Clone + Send + Sync + ' static ,
189+ I : Input + Send + Sync + ' static ,
190190 D : IntoCodecResponse + Send + ' static ,
191191 S : Clone + Send + Sync + ' static ,
192- T : ' static ,
192+ T : Sync + ' static ,
193193 F : FnOnce ( aide:: transform:: TransformOperation ) -> aide:: transform:: TransformOperation ,
194194 {
195195 MethodRouter :: from( aide:: axum:: routing:: $with( CodecHandlerFn :: <H , I , D >:: new( handler) , transform) )
0 commit comments