From 2f2e0b83fc801738437ec69e4bd16281e6a446fd Mon Sep 17 00:00:00 2001 From: Henning Kowalk Date: Thu, 26 Apr 2018 14:39:03 +0200 Subject: [PATCH] Add docstring to generated catcher info. This silences the 'missing_docs' lint. --- codegen/src/decorators/catch.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/codegen/src/decorators/catch.rs b/codegen/src/decorators/catch.rs index ccd0dcb6..18724178 100644 --- a/codegen/src/decorators/catch.rs +++ b/codegen/src/decorators/catch.rs @@ -83,6 +83,7 @@ pub fn catch_decorator( // Push the static catch info. This is what the `catchers!` macro refers to. let struct_name = user_fn_name.prepend(CATCH_STRUCT_PREFIX); emit_item(&mut output, quote_item!(ecx, + /// Rocket code generated static catch information structure. #[allow(non_upper_case_globals)] pub static $struct_name: ::rocket::StaticCatchInfo = ::rocket::StaticCatchInfo {