With quote 1.0.28 the TokenTree enum is declared as a private enum
thus causing this error at build time:
error[E0603]: enum `TokenTree` is private
--> config_macros.rs:114:54
|
114 | ... if let quote::__private::TokenTree::Group(g) =
| ^^^^^^^^^ private enum
Use enum definition from proc_macro2 instead.
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
config_macros.rs contains a macro that parses config structs and
generates a new "override" struct that contains the fields as Options.
The macro matches on each field's attributes and removes the serde
"default" attributes, since the override default is always None.
However, if an attribute contained a group of values and the first
wasn't `default` the attribute was skipped, so don't do that.