fixed error with multiple members
This commit is contained in:
parent
bdf702c82f
commit
782dd07f64
@ -211,7 +211,7 @@ fn emit_section_struct(out: &mut proc_macro2::TokenStream, section: &ParseConfig
|
||||
let name = var.name.clone();
|
||||
let ty = var.ty.clone();
|
||||
quote! {
|
||||
pub #name: #ty,
|
||||
pub #name: #ty
|
||||
}
|
||||
}).collect::<Vec<_>>();
|
||||
let subsections = §ion.subsections.iter().map(|subsection| {
|
||||
|
||||
@ -6,6 +6,7 @@ config! {
|
||||
param name = Config;
|
||||
section top {
|
||||
var rand: u64 = 42;
|
||||
var funny: i64 = 24;
|
||||
section database {
|
||||
var seed: u64 = 42;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user