From 197a34c41d3efc4c09e48015707629d0cb10b10c Mon Sep 17 00:00:00 2001 From: rvcas Date: Fri, 2 Jul 2021 21:24:34 -0400 Subject: [PATCH] fix: accidentally used experimental feature --- editor/src/lang/def.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/editor/src/lang/def.rs b/editor/src/lang/def.rs index 3b6d87b076..c9ae1bfc4a 100644 --- a/editor/src/lang/def.rs +++ b/editor/src/lang/def.rs @@ -46,13 +46,13 @@ impl Def { match self { Def::AnnotationOnly { .. } => todo!("lost pattern information here ... "), - Def::Value( + Def::Value(value_def) => match value_def { ValueDef::WithAnnotation { pattern_id, .. } - | ValueDef::NoAnnotation { pattern_id, .. }, - ) => { - let pattern2 = &pool[*pattern_id]; - output.extend(symbols_from_pattern(pool, pattern2)); - } + | ValueDef::NoAnnotation { pattern_id, .. } => { + let pattern2 = &pool[*pattern_id]; + output.extend(symbols_from_pattern(pool, pattern2)); + } + }, Def::Function(function_def) => match function_def { FunctionDef::NoAnnotation { name, .. } | FunctionDef::WithAnnotation { name, .. } => {