Add a docstring to the emitted static route info.

Resolves #258.
This commit is contained in:
Sergio Benitez 2017-04-18 22:05:56 -07:00
parent 7b48ca7103
commit 0d18faf91e
1 changed files with 1 additions and 0 deletions

View File

@ -269,6 +269,7 @@ fn generic_route_decorator(known_method: Option<Spanned<Method>>,
let struct_name = user_fn_name.prepend(ROUTE_STRUCT_PREFIX);
let (path, method, media_type, rank) = route.explode(ecx);
let static_route_info_item = quote_item!(ecx,
/// Rocket code generated static route information structure.
#[allow(non_upper_case_globals)]
pub static $struct_name: ::rocket::StaticRouteInfo =
::rocket::StaticRouteInfo {