Skip to content

Commit

Permalink
Attempt to make the documentation of uri macros look nicer. It actual…
Browse files Browse the repository at this point in the history
…ly makes it all disappear, though.
  • Loading branch information
jebrosen committed Jun 29, 2019
1 parent c475b5a commit e8268c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/codegen/src/attribute/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ fn generate_internal_uri_macro(route: &Route) -> TokenStream2 {
let route_uri = route.attribute.path.origin.0.to_string();

quote! {
#[doc(hidden)]
#[macro_export]
macro_rules! #inner_generated_macro_name {
($($token:tt)*) => {{
Expand All @@ -349,6 +350,8 @@ fn generate_internal_uri_macro(route: &Route) -> TokenStream2 {
rocket::rocket_internal_uri!(#route_uri, (#(#dynamic_args),*), $($token)*)
}};
}

#[doc(inline)]
pub use #inner_generated_macro_name as #generated_macro_name;
}
}
Expand Down

0 comments on commit e8268c1

Please sign in to comment.