Trying to resolve the clippy forbid(missing_doc) in web codegen

This commit is contained in:
LucaCappelletti94 2025-05-20 14:39:54 +02:00
parent 1f9bc2de7d
commit ab23b07c41
2 changed files with 5 additions and 2 deletions

View File

@ -59,6 +59,7 @@ macro_rules! standard_method_type {
(
$($variant:ident, $upper:ident, $lower:ident,)+
) => {
#[doc(hidden)]
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
pub enum MethodType {
$(
@ -466,7 +467,8 @@ impl ToTokens for Route {
let stream = quote! {
#(#doc_attributes)*
#[allow(non_camel_case_types, missing_docs)]
#[doc(hidden)]
#[allow(non_camel_case_types)]
#vis struct #name;
impl ::actix_web::dev::HttpServiceFactory for #name {

View File

@ -6,7 +6,8 @@ use crate::{HttpResponse, HttpResponseBuilder};
macro_rules! static_resp {
($name:ident, $status:expr) => {
#[allow(non_snake_case, missing_docs)]
#[allow(non_snake_case)]
#[doc(hidden)]
pub fn $name() -> HttpResponseBuilder {
HttpResponseBuilder::new($status)
}