mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-07 09:12:09 +00:00
parent
7b48ca7103
commit
0d18faf91e
@ -269,6 +269,7 @@ fn generic_route_decorator(known_method: Option<Spanned<Method>>,
|
|||||||
let struct_name = user_fn_name.prepend(ROUTE_STRUCT_PREFIX);
|
let struct_name = user_fn_name.prepend(ROUTE_STRUCT_PREFIX);
|
||||||
let (path, method, media_type, rank) = route.explode(ecx);
|
let (path, method, media_type, rank) = route.explode(ecx);
|
||||||
let static_route_info_item = quote_item!(ecx,
|
let static_route_info_item = quote_item!(ecx,
|
||||||
|
/// Rocket code generated static route information structure.
|
||||||
#[allow(non_upper_case_globals)]
|
#[allow(non_upper_case_globals)]
|
||||||
pub static $struct_name: ::rocket::StaticRouteInfo =
|
pub static $struct_name: ::rocket::StaticRouteInfo =
|
||||||
::rocket::StaticRouteInfo {
|
::rocket::StaticRouteInfo {
|
||||||
|
Loading…
Reference in New Issue
Block a user