diff --git a/codegen/src/util.rs b/codegen/src/util.rs index 0890b23..5fa187c 100644 --- a/codegen/src/util.rs +++ b/codegen/src/util.rs @@ -137,7 +137,9 @@ pub fn parse_args(sig: &mut syn::Signature) -> Result, syn::Error> { // A literal, like the `"name"` in `#[param("name")]` syn::NestedMeta::Lit(lit) => { if let syn::Lit::Str(lit) = lit { - name = lit.value(); + if !lit.value().is_empty() { + name = lit.value(); + } } }, _=> {