fixed error with multiple members

This commit is contained in:
Linus Vogel 2026-08-17 19:00:19 +02:00
parent bdf702c82f
commit 782dd07f64
2 changed files with 2 additions and 1 deletions

View File

@ -211,7 +211,7 @@ fn emit_section_struct(out: &mut proc_macro2::TokenStream, section: &ParseConfig
let name = var.name.clone(); let name = var.name.clone();
let ty = var.ty.clone(); let ty = var.ty.clone();
quote! { quote! {
pub #name: #ty, pub #name: #ty
} }
}).collect::<Vec<_>>(); }).collect::<Vec<_>>();
let subsections = &section.subsections.iter().map(|subsection| { let subsections = &section.subsections.iter().map(|subsection| {

View File

@ -6,6 +6,7 @@ config! {
param name = Config; param name = Config;
section top { section top {
var rand: u64 = 42; var rand: u64 = 42;
var funny: i64 = 24;
section database { section database {
var seed: u64 = 42; var seed: u64 = 42;
} }