diff options
Diffstat (limited to 'libeditor/src')
-rw-r--r-- | libeditor/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libeditor/src/lib.rs b/libeditor/src/lib.rs index e7cc6a696..ebc063ed2 100644 --- a/libeditor/src/lib.rs +++ b/libeditor/src/lib.rs | |||
@@ -120,7 +120,7 @@ struct Declaration<'f>(SyntaxNodeRef<'f>); | |||
120 | impl<'f> Declaration<'f> { | 120 | impl<'f> Declaration<'f> { |
121 | fn cast(node: SyntaxNodeRef<'f>) -> Option<Declaration<'f>> { | 121 | fn cast(node: SyntaxNodeRef<'f>) -> Option<Declaration<'f>> { |
122 | match node.kind() { | 122 | match node.kind() { |
123 | | STRUCT_ITEM | ENUM_ITEM | FN_ITEM | TRAIT_ITEM | 123 | | STRUCT_ITEM | ENUM_ITEM | FUNCTION | TRAIT_ITEM |
124 | | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD | 124 | | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD |
125 | | TYPE_ITEM => Some(Declaration(node)), | 125 | | TYPE_ITEM => Some(Declaration(node)), |
126 | _ => None | 126 | _ => None |