@@ -80,9 +80,18 @@ macro_rules! impl_request_handler {
8080 Fut : Future <Output = R > + Send ,
8181 R : IntoResponse ,
8282 {
83- #[ allow( non_snake_case) ]
83+ #[ allow(
84+ clippy:: allow_attributes,
85+ non_snake_case,
86+ reason = "for the case where there are no params"
87+ ) ]
8488 async fn handle( & self , request: Request ) -> Result <Response > {
85- #[ allow( unused_variables, unused_mut) ] // for the case where there are no params
89+ #[ allow(
90+ clippy:: allow_attributes,
91+ unused_variables,
92+ unused_mut,
93+ reason = "for the case where there are no params"
94+ ) ]
8695 let ( mut parts, _body) = request. into_parts( ) ;
8796
8897 $(
@@ -106,9 +115,17 @@ macro_rules! impl_request_handler_from_request {
106115 Fut : Future <Output = R > + Send ,
107116 R : IntoResponse ,
108117 {
109- #[ expect( non_snake_case) ]
118+ #[ allow(
119+ clippy:: allow_attributes,
120+ non_snake_case,
121+ reason = "for the case where there are no FromRequestParts params"
122+ ) ]
110123 async fn handle( & self , request: Request ) -> Result <Response > {
111- #[ allow( unused_mut) ] // for the case where there are no FromRequestParts params
124+ #[ allow(
125+ clippy:: allow_attributes,
126+ unused_mut,
127+ reason = "for the case where there are no FromRequestParts params"
128+ ) ]
112129 let ( mut parts, body) = request. into_parts( ) ;
113130
114131 $(
0 commit comments