mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +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…
Add table
Add a link
Reference in a new issue