From 78f41ea707cc8aeaa8d1ba8a7216cb8712f13e98 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 11 Aug 2018 10:56:40 +0300 Subject: more renames --- crates/libeditor/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/libeditor/src') diff --git a/crates/libeditor/src/lib.rs b/crates/libeditor/src/lib.rs index df0938e90..293fafae7 100644 --- a/crates/libeditor/src/lib.rs +++ b/crates/libeditor/src/lib.rs @@ -141,8 +141,8 @@ struct Declaration<'f> (SyntaxNodeRef<'f>); impl<'f> Declaration<'f> { fn cast(node: SyntaxNodeRef<'f>) -> Option> { match node.kind() { - | STRUCT | ENUM | FUNCTION | TRAIT_ITEM - | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD + | STRUCT | ENUM | FUNCTION | TRAIT + | CONST_ITEM | STATIC_ITEM | MODULE | NAMED_FIELD | TYPE_ITEM => Some(Declaration(node)), _ => None } -- cgit v1.2.3