aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-11 08:05:26 +0100
committerAleksey Kladov <[email protected]>2018-08-11 08:05:26 +0100
commite69c70e2a208fd89d4d49a104f5516c55546309e (patch)
tree8046552948a5faf704832184ee7c3da23ea8eb2c /crates/libeditor
parent7698d37fa45735aa090512045605c47f5615e3f5 (diff)
ENUM_ITEM -> ENUM
Diffstat (limited to 'crates/libeditor')
-rw-r--r--crates/libeditor/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/libeditor/src/lib.rs b/crates/libeditor/src/lib.rs
index a83fb7d17..df0938e90 100644
--- a/crates/libeditor/src/lib.rs
+++ b/crates/libeditor/src/lib.rs
@@ -141,7 +141,7 @@ struct Declaration<'f> (SyntaxNodeRef<'f>);
141impl<'f> Declaration<'f> { 141impl<'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 | ENUM_ITEM | FUNCTION | TRAIT_ITEM 144 | STRUCT | ENUM | 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