diff options
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r-- | crates/ra_syntax/src/ast.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs index 165b308d1..00c60ebf3 100644 --- a/crates/ra_syntax/src/ast.rs +++ b/crates/ra_syntax/src/ast.rs | |||
@@ -407,7 +407,7 @@ impl<'a, N: AstNode + 'a> Iterator for AstChildren<'a, N> { | |||
407 | 407 | ||
408 | #[derive(Debug, Clone, PartialEq, Eq)] | 408 | #[derive(Debug, Clone, PartialEq, Eq)] |
409 | pub enum StructFlavor<'a> { | 409 | pub enum StructFlavor<'a> { |
410 | Tuple(&'a PosFieldList), | 410 | Tuple(&'a PosFieldDefList), |
411 | Named(&'a NamedFieldDefList), | 411 | Named(&'a NamedFieldDefList), |
412 | Unit, | 412 | Unit, |
413 | } | 413 | } |
@@ -416,7 +416,7 @@ impl StructFlavor<'_> { | |||
416 | fn from_node<N: AstNode>(node: &N) -> StructFlavor { | 416 | fn from_node<N: AstNode>(node: &N) -> StructFlavor { |
417 | if let Some(nfdl) = child_opt::<_, NamedFieldDefList>(node) { | 417 | if let Some(nfdl) = child_opt::<_, NamedFieldDefList>(node) { |
418 | StructFlavor::Named(nfdl) | 418 | StructFlavor::Named(nfdl) |
419 | } else if let Some(pfl) = child_opt::<_, PosFieldList>(node) { | 419 | } else if let Some(pfl) = child_opt::<_, PosFieldDefList>(node) { |
420 | StructFlavor::Tuple(pfl) | 420 | StructFlavor::Tuple(pfl) |
421 | } else { | 421 | } else { |
422 | StructFlavor::Unit | 422 | StructFlavor::Unit |