diff --git a/CHANGELOG.md b/CHANGELOG.md index 58a6eaf..1d06d54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ ## Pre-Release +- Introduce new cgp-field constructs [#36](https://github.com/contextgeneric/cgp/pull/36) + - Introduce the product type constructs `Cons` and `Nil`. + - Introduce the sum type constructs `Either` and `Void`. + - Introduce the `Field` type for tagged field value. + - Introduce the `Product!` macro for building product types. + - Introduce the `product!` macro for building product expressions. + - Introduce the `Sum!` macro for building sum types. + - Change the `symbol!` macro to generate product type of `Char` using `Cons` and `Nil`. + - Rename `HasField::Field` to `HasField::Value` - [#35](https://github.com/contextgeneric/cgp/pull/35) - Remove `Sized` constraint from `Async` trait - [#34](https://github.com/contextgeneric/cgp/pull/34) diff --git a/crates/cgp-field-macro-lib/src/product.rs b/crates/cgp-field-macro-lib/src/product.rs index 3973c2f..801ccef 100644 --- a/crates/cgp-field-macro-lib/src/product.rs +++ b/crates/cgp-field-macro-lib/src/product.rs @@ -9,7 +9,7 @@ pub struct ParsePunctuated(pub Punctuated); impl Parse for ParsePunctuated { fn parse(input: ParseStream) -> syn::Result { - let types = Punctuated::parse_terminated(&input)?; + let types = Punctuated::parse_terminated(input)?; Ok(ParsePunctuated(types)) } }