Compare commits

...

1 Commits

Author SHA1 Message Date
Alex 5dc358ccb8 style: fix formatting
Tests / test (push) Has been cancelled
2026-05-31 17:44:42 +03:00
2 changed files with 4 additions and 11 deletions
+3 -7
View File
@@ -156,15 +156,11 @@ fn controller_on_impl(impl_block: ItemImpl) -> TokenStream {
}
};
let factory_name =
syn::Ident::new(&format!("__make_route_{}", name), name.span());
let factory_name = syn::Ident::new(&format!("__make_route_{}", name), name.span());
// Cleaned method (without route attribute)
let non_route_attrs: Vec<_> = method
.attrs
.iter()
.filter(|a| !is_route_attr(a))
.collect();
let non_route_attrs: Vec<_> =
method.attrs.iter().filter(|a| !is_route_attr(a)).collect();
let vis = &method.vis;
let sig = &method.sig;
let block = &method.block;
+1 -4
View File
@@ -113,10 +113,7 @@ mod tests {
}
#[post("/items")]
async fn add_item(
&self,
axum::extract::Json(body): axum::extract::Json<String>,
) -> String {
async fn add_item(&self, axum::extract::Json(body): axum::extract::Json<String>) -> String {
format!("added: {}", body)
}
}