mirror of https://github.com/fafhrd91/actix-web
clean up for rust fmt
This commit is contained in:
parent
828be28199
commit
4fb51ad70a
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue