mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-24 04:32:52 +01:00
fix #543
This commit is contained in:
parent
7155b55ac8
commit
fb092aa65a
1 changed files with 4 additions and 0 deletions
|
@ -43,8 +43,10 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> CodegenResult {
|
||||||
.map(|(k, v)| {
|
.map(|(k, v)| {
|
||||||
let ty = &v.ty;
|
let ty = &v.ty;
|
||||||
let cfgs = &v.cfgs;
|
let cfgs = &v.cfgs;
|
||||||
|
let docs = &v.docs;
|
||||||
quote!(
|
quote!(
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
|
#(#docs)*
|
||||||
#k: #ty,
|
#k: #ty,
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
@ -55,8 +57,10 @@ pub fn codegen(app: &App, analysis: &Analysis, extra: &Extra) -> CodegenResult {
|
||||||
.map(|(k, v)| {
|
.map(|(k, v)| {
|
||||||
let ty = &v.ty;
|
let ty = &v.ty;
|
||||||
let cfgs = &v.cfgs;
|
let cfgs = &v.cfgs;
|
||||||
|
let docs = &v.docs;
|
||||||
quote!(
|
quote!(
|
||||||
#(#cfgs)*
|
#(#cfgs)*
|
||||||
|
#(#docs)*
|
||||||
#k: #ty,
|
#k: #ty,
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue