mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-23 20:22:51 +01:00
Merge #549
549: fix #543 r=korken89 a=andrewgazelka The remaining PR to fix #543 alongside https://github.com/rtic-rs/rtic-syntax/pull/58 Co-authored-by: Andrew Gazelka <andrew.gazelka@gmail.com>
This commit is contained in:
commit
4f3c5baf49
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)| {
|
||||
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,
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue