From 626a07e53ae3f987c552333e670f8fdc855bbe63 Mon Sep 17 00:00:00 2001 From: kirk Date: Sun, 8 Oct 2023 16:27:22 +0000 Subject: [PATCH] fix parser handling of missing trailing comma --- derive/src/parse.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/derive/src/parse.rs b/derive/src/parse.rs index 6505d0d..e91a521 100644 --- a/derive/src/parse.rs +++ b/derive/src/parse.rs @@ -76,7 +76,6 @@ pub enum Category { args: Option>, return_type: Option>, }, - UnNamed, Object { is_dyn: bool, trait_names: Vec>, @@ -331,7 +330,6 @@ impl Category { .join(", ") ), Category::Named { path } => path.clone(), - Category::UnNamed => String::default(), Category::Object { is_dyn, trait_names, @@ -995,7 +993,7 @@ fn next_type + Clone>(mut source: &mut Peekable let as_other = as_other_type(source).map(Box::new); if ty.is_empty() { Some(Type { - ident: Category::UnNamed, + ident: Category::None, wraps: None, ref_type, as_other,