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