Reduce json nesting
diff --git a/codegen/src/parse.rs b/codegen/src/parse.rs
index e7eef19..25b8ac1 100644
--- a/codegen/src/parse.rs
+++ b/codegen/src/parse.rs
@@ -162,7 +162,7 @@
_ => panic!(),
};
- types::Type::Punctuated(Box::new(nested), punct)
+ types::Type::Punctuated(types::Punctuated::new(nested, punct))
}
"Vec" => {
let nested = introspect_type(first_arg(&last.arguments), items, tokens);
@@ -173,7 +173,7 @@
types::Type::Box(Box::new(nested))
}
"Brace" | "Bracket" | "Paren" | "Group" => {
- types::Type::TokenGroup(last.ident.to_string())
+ types::Type::Group(last.ident.to_string())
}
"TokenStream" | "Literal" => types::Type::Ext(last.ident.to_string()),
"String" | "u32" | "usize" | "bool" => types::Type::Std(last.ident.to_string()),