mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
Rename EnumVariant -> Variant
This commit is contained in:
parent
609680ef97
commit
1766aae145
32 changed files with 86 additions and 86 deletions
|
@ -75,8 +75,8 @@ impl HasSource for Enum {
|
|||
}
|
||||
}
|
||||
impl HasSource for EnumVariant {
|
||||
type Ast = ast::EnumVariant;
|
||||
fn source(self, db: &dyn HirDatabase) -> InFile<ast::EnumVariant> {
|
||||
type Ast = ast::Variant;
|
||||
fn source(self, db: &dyn HirDatabase) -> InFile<ast::Variant> {
|
||||
self.parent.id.child_source(db.upcast()).map(|map| map[self.id].clone())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue