Add docstring to generated catcher info.

This silences the 'missing_docs' lint.
This commit is contained in:
Henning Kowalk 2018-04-26 14:39:03 +02:00 committed by Sergio Benitez
parent 0842612607
commit 2f2e0b83fc
1 changed files with 1 additions and 0 deletions

View File

@ -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 {