Compare commits

..

No commits in common. "37c9844e39ccf0e8d03adccbae317e7f17f39d9e" and "15c3ce59c8584af2aa7dac20de4aaf9cb0e57944" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -465,12 +465,9 @@ 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]
#[doc(hidden)]
#[allow(non_camel_case_types)]
#vis struct #name;

View File

@ -7,7 +7,7 @@ use crate::{HttpResponse, HttpResponseBuilder};
macro_rules! static_resp {
($name:ident, $status:expr) => {
#[allow(non_snake_case)]
#[doc = concat!("Creates a new response builder with the status code `", stringify!($status), "`.")]
#[doc(hidden)]
pub fn $name() -> HttpResponseBuilder {
HttpResponseBuilder::new($status)
}