Skip to content

Commit

Permalink
fix parser handling of missing trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
knickish committed Oct 9, 2023
1 parent b4d79db commit 626a07e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions derive/src/parse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ pub enum Category {
args: Option<Box<Type>>,
return_type: Option<Box<Type>>,
},
UnNamed,
Object {
is_dyn: bool,
trait_names: Vec<Box<Type>>,
Expand Down Expand Up @@ -331,7 +330,6 @@ impl Category {
.join(", ")
),
Category::Named { path } => path.clone(),
Category::UnNamed => String::default(),
Category::Object {
is_dyn,
trait_names,
Expand Down Expand Up @@ -995,7 +993,7 @@ fn next_type<T: Iterator<Item = TokenTree> + Clone>(mut source: &mut Peekable<T>
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,
Expand Down

0 comments on commit 626a07e

Please sign in to comment.