greyblake / nutype

Rust newtype with guarantees 🇺🇦 🦀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use Expr for default values instead of TokenStream

greyblake opened this issue · comments

Context

Currently we use maybe_default_value: Option<TokenStream> to keep the value of default attribute.

Specs

  • Use syn::Expr instead of TokenStream to keep the value of default attribute

Acceptance Criteria

All the current tests pass without changes.