diff --git a/actix-web-codegen/src/route.rs b/actix-web-codegen/src/route.rs index a03cf9e9f..cd1ad4c66 100644 --- a/actix-web-codegen/src/route.rs +++ b/actix-web-codegen/src/route.rs @@ -465,12 +465,8 @@ impl ToTokens for Route { }) .collect(); - let documentation = - format!("Struct generated by the routing macro for the handler function `{name}`.",); - let stream = quote! { #(#doc_attributes)* - #[doc = #documentation] #[allow(non_camel_case_types)] #vis struct #name;