diff options
author | Aleksey Kladov <[email protected]> | 2020-04-10 08:14:14 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-10 15:10:27 +0100 |
commit | ff5643c52445c516b8b32bc6062c66203ca13ee4 (patch) | |
tree | 5dd44def1fd243145739e0443319f46de7be86ce /xtask/src | |
parent | 38e0d0f3348900bb4078deb09d48c5b6483d43d6 (diff) |
Simplify
Diffstat (limited to 'xtask/src')
-rw-r--r-- | xtask/src/ast_src.rs | 8 |
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> { | |||
233 | pub(crate) struct AstNodeSrc<'a> { | 233 | pub(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 | ||
239 | pub(crate) enum FieldSrc<T> { | 239 | pub(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 | ||
245 | pub(crate) struct AstEnumSrc<'a> { | 245 | pub(crate) struct AstEnumSrc<'a> { |