From 782dd07f64c56fe24602ea4f78c9ccef98ded18b Mon Sep 17 00:00:00 2001 From: Linus Vogel Date: Mon, 17 Aug 2026 19:00:19 +0200 Subject: [PATCH] fixed error with multiple members --- src/lib.rs | 2 +- tests/integration_tests.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 23c20d6..c735786 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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::>(); let subsections = §ion.subsections.iter().map(|subsection| { diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs index 56d85ee..42bb0a0 100644 --- a/tests/integration_tests.rs +++ b/tests/integration_tests.rs @@ -6,6 +6,7 @@ config! { param name = Config; section top { var rand: u64 = 42; + var funny: i64 = 24; section database { var seed: u64 = 42; }