aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-11 08:56:40 +0100
committerAleksey Kladov <[email protected]>2018-08-11 08:56:40 +0100
commit78f41ea707cc8aeaa8d1ba8a7216cb8712f13e98 (patch)
tree0553368ba2a5b8f67f793413beb22225e3416126 /crates/libeditor/src
parent2e971cdcbbeb543ab6b66dc8558644c1f4a80670 (diff)
more renames
Diffstat (limited to 'crates/libeditor/src')
-rw-r--r--crates/libeditor/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
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>);
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 | FUNCTION | TRAIT_ITEM 144 | STRUCT | ENUM | FUNCTION | TRAIT
145 | CONST_ITEM | STATIC_ITEM | MOD_ITEM | NAMED_FIELD 145 | CONST_ITEM | STATIC_ITEM | MODULE | NAMED_FIELD
146 | TYPE_ITEM => Some(Declaration(node)), 146 | TYPE_ITEM => Some(Declaration(node)),
147 _ => None 147 _ => None
148 } 148 }