mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Don't redo field resolution in the IDE
This commit is contained in:
parent
ac9ba5eb32
commit
63e3ea38d3
6 changed files with 30 additions and 22 deletions
|
@ -510,7 +510,7 @@ impl VariantDef {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn field(self, db: &impl HirDatabase, name: &Name) -> Option<StructField> {
|
||||
pub(crate) fn field(self, db: &impl HirDatabase, name: &Name) -> Option<StructField> {
|
||||
match self {
|
||||
VariantDef::Struct(it) => it.field(db, name),
|
||||
VariantDef::EnumVariant(it) => it.field(db, name),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue