mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 22:31:43 +00:00
Uniformalize naming
This commit is contained in:
parent
4d49b5d174
commit
d8caf56dfc
6 changed files with 17 additions and 22 deletions
|
@ -63,7 +63,7 @@ impl HasSource for StructField {
|
|||
|
||||
let field_sources = match struct_kind {
|
||||
ast::StructKind::Tuple(fl) => fl.fields().map(|it| FieldSource::Pos(it)).collect(),
|
||||
ast::StructKind::Named(fl) => fl.fields().map(|it| FieldSource::Named(it)).collect(),
|
||||
ast::StructKind::Record(fl) => fl.fields().map(|it| FieldSource::Named(it)).collect(),
|
||||
ast::StructKind::Unit => Vec::new(),
|
||||
};
|
||||
let value = field_sources
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue