diff options
author | Aleksey Kladov <[email protected]> | 2018-08-11 08:04:47 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-11 08:04:47 +0100 |
commit | 7698d37fa45735aa090512045605c47f5615e3f5 (patch) | |
tree | 4c81ec4f7f7b579860fc8a1c1cd981042cc8ee46 /crates/libeditor/src | |
parent | ce898183b83eb2cf86c8c6ceeeac16ef68fdc802 (diff) |
STRUCT_ITEM -> STRUCT
Diffstat (limited to 'crates/libeditor/src')
-rw-r--r-- | crates/libeditor/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libeditor/src/lib.rs b/crates/libeditor/src/lib.rs index c762a8b0b..a83fb7d17 100644 --- a/crates/libeditor/src/lib.rs +++ b/crates/libeditor/src/lib.rs | |||
@@ -141,7 +141,7 @@ struct Declaration<'f> (SyntaxNodeRef<'f>); | |||
141 | impl<'f> Declaration<'f> { | 141 | impl<'f> Declaration<'f> { |
142 | fn cast(node: SyntaxNodeRef<'f>) -> Option<Declaration<'f>> { | 142 | fn cast(node: SyntaxNodeRef<'f>) -> Option<Declaration<'f>> { |
143 | match node.kind() { | 143 | match node.kind() { |
144 | | STRUCT_ITEM | ENUM_ITEM | FUNCTION | TRAIT_ITEM | 144 | | STRUCT | ENUM_ITEM | FUNCTION | TRAIT_ITEM |
145 | | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD | 145 | | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD |
146 | | TYPE_ITEM => Some(Declaration(node)), | 146 | | TYPE_ITEM => Some(Declaration(node)), |
147 | _ => None | 147 | _ => None |