mirror of https://github.com/rwf2/Rocket.git
Add docstring to generated catcher info.
This silences the 'missing_docs' lint.
This commit is contained in:
parent
0842612607
commit
2f2e0b83fc
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue