mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Simplify
This commit is contained in:
parent
38e0d0f334
commit
ff5643c524
1 changed files with 4 additions and 4 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue