mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Cleanup
This commit is contained in:
parent
1669344b2a
commit
180e9b2bbf
17 changed files with 175 additions and 168 deletions
|
@ -440,6 +440,12 @@ impl ast::Struct {
|
|||
}
|
||||
}
|
||||
|
||||
impl ast::Union {
|
||||
pub fn kind(&self) -> StructKind {
|
||||
StructKind::from_node(self)
|
||||
}
|
||||
}
|
||||
|
||||
impl ast::RecordExprField {
|
||||
pub fn for_field_name(field_name: &ast::NameRef) -> Option<ast::RecordExprField> {
|
||||
let candidate = Self::for_name_ref(field_name)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue