1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-05-19 16:58:14 +00:00

clean up for rust fmt

This commit is contained in:
Jon Lim 2024-04-02 22:19:25 -07:00
parent 828be28199
commit 4fb51ad70a
2 changed files with 1 additions and 3 deletions

View file

@ -256,11 +256,9 @@ pub fn test(_: TokenStream, item: TokenStream) -> TokenStream {
///
/// ```rust
/// use actix_web_codegen::{scope};
///
/// #[scope("/test")]
/// mod scope_module {
/// use actix_web::{get, HttpResponse, Responder};
///
/// #[get("/test")]
/// pub async fn test() -> impl Responder {
/// // this has path /test/test

View file

@ -633,7 +633,7 @@ fn modify_attribute_with_scope(attr: &syn::Attribute, scope_path: &str) -> syn::
acc
});
return syn::Attribute {
syn::Attribute {
meta: syn::Meta::List(syn::MetaList {
tokens: quote! { #modified_path #combined_options_tokens },
..meta_list.clone()