From afa94d4f37b9a0a1e723edffcc79c3d48799bad1 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 9 Aug 2018 17:44:40 +0300 Subject: fn_item -> function --- libeditor/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libeditor/src') diff --git a/libeditor/src/lib.rs b/libeditor/src/lib.rs index e7cc6a696..ebc063ed2 100644 --- a/libeditor/src/lib.rs +++ b/libeditor/src/lib.rs @@ -120,7 +120,7 @@ struct Declaration<'f>(SyntaxNodeRef<'f>); impl<'f> Declaration<'f> { fn cast(node: SyntaxNodeRef<'f>) -> Option> { match node.kind() { - | STRUCT_ITEM | ENUM_ITEM | FN_ITEM | TRAIT_ITEM + | STRUCT_ITEM | ENUM_ITEM | FUNCTION | TRAIT_ITEM | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD | TYPE_ITEM => Some(Declaration(node)), _ => None -- cgit v1.2.3