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; }