This commit is contained in:
Aleksey Kladov 2020-04-10 09:14:14 +02:00
parent 38e0d0f334
commit ff5643c524

View File

@ -233,13 +233,13 @@ pub(crate) struct AstSrc<'a> {
pub(crate) struct AstNodeSrc<'a> {
pub(crate) name: &'a str,
pub(crate) traits: &'a [&'a str],
pub(crate) fields: &'a [(&'a str, FieldSrc<&'a str>)],
pub(crate) fields: &'a [(&'a str, FieldSrc<'a>)],
}
pub(crate) enum FieldSrc<T> {
pub(crate) enum FieldSrc<'a> {
Shorthand,
Optional(T),
Many(T),
Optional(&'a str),
Many(&'a str),
}
pub(crate) struct AstEnumSrc<'a> {