From e69c70e2a208fd89d4d49a104f5516c55546309e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Aug 2018 10:05:26 +0300 Subject: ENUM_ITEM -> ENUM --- crates/libeditor/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/libeditor/src/lib.rs') 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>); impl<'f> Declaration<'f> { fn cast(node: SyntaxNodeRef<'f>) -> Option> { match node.kind() { - | STRUCT | ENUM_ITEM | FUNCTION | TRAIT_ITEM + | STRUCT | ENUM | FUNCTION | TRAIT_ITEM | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD | TYPE_ITEM => Some(Declaration(node)), _ => None -- cgit v1.2.3