From fb092aa65a6a7935828fbf6dcb7d3e89f0355a83 Mon Sep 17 00:00:00 2001 From: Andrew Gazelka Date: Sat, 9 Oct 2021 15:27:20 -0700 Subject: [PATCH] fix #543 --- macros/src/codegen/init.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macros/src/codegen/init.rs b/macros/src/codegen/init.rs index 2de3e73481..eaf7f612a9 100644 --- a/macros/src/codegen/init.rs +++ b/macros/src/codegen/init.rs @@ -43,8 +43,10 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> CodegenResult { .map(|(k, v)| { let ty = &v.ty; let cfgs = &v.cfgs; + let docs = &v.docs; quote!( #(#cfgs)* + #(#docs)* #k: #ty, ) }) @@ -55,8 +57,10 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> CodegenResult { .map(|(k, v)| { let ty = &v.ty; let cfgs = &v.cfgs; + let docs = &v.docs; quote!( #(#cfgs)* + #(#docs)* #k: #ty, ) })