aboutsummaryrefslogtreecommitdiff
path: root/xtask/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-10 08:14:14 +0100
committerAleksey Kladov <[email protected]>2020-04-10 15:10:27 +0100
commitff5643c52445c516b8b32bc6062c66203ca13ee4 (patch)
tree5dd44def1fd243145739e0443319f46de7be86ce /xtask/src
parent38e0d0f3348900bb4078deb09d48c5b6483d43d6 (diff)
Simplify
Diffstat (limited to 'xtask/src')
-rw-r--r--xtask/src/ast_src.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/xtask/src/ast_src.rs b/xtask/src/ast_src.rs
index bb97b13fe..15bd8a2e4 100644
--- a/xtask/src/ast_src.rs
+++ b/xtask/src/ast_src.rs
@@ -233,13 +233,13 @@ pub(crate) struct AstSrc<'a> {
233pub(crate) struct AstNodeSrc<'a> { 233pub(crate) struct AstNodeSrc<'a> {
234 pub(crate) name: &'a str, 234 pub(crate) name: &'a str,
235 pub(crate) traits: &'a [&'a str], 235 pub(crate) traits: &'a [&'a str],
236 pub(crate) fields: &'a [(&'a str, FieldSrc<&'a str>)], 236 pub(crate) fields: &'a [(&'a str, FieldSrc<'a>)],
237} 237}
238 238
239pub(crate) enum FieldSrc<T> { 239pub(crate) enum FieldSrc<'a> {
240 Shorthand, 240 Shorthand,
241 Optional(T), 241 Optional(&'a str),
242 Many(T), 242 Many(&'a str),
243} 243}
244 244
245pub(crate) struct AstEnumSrc<'a> { 245pub(crate) struct AstEnumSrc<'a> {