From 0d18faf91ee473b29e91bb26e94908c2976777b9 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Tue, 18 Apr 2017 22:05:56 -0700 Subject: [PATCH] Add a docstring to the emitted static route info. Resolves #258. --- codegen/src/decorators/route.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codegen/src/decorators/route.rs b/codegen/src/decorators/route.rs index 6b7ac7d6..b060f300 100644 --- a/codegen/src/decorators/route.rs +++ b/codegen/src/decorators/route.rs @@ -269,6 +269,7 @@ fn generic_route_decorator(known_method: Option>, 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 {