From c00effcbdd4f90c42a732b871a751279055607a8 Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 14 May 2018 23:22:43 -0700 Subject: [PATCH] Add _ --- schala-lang/src/eval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schala-lang/src/eval.rs b/schala-lang/src/eval.rs index 33bcdd0..9ac71ad 100644 --- a/schala-lang/src/eval.rs +++ b/schala-lang/src/eval.rs @@ -267,7 +267,7 @@ impl<'a> State<'a> { let type_context = self.type_context_handle.borrow(); Ok(match type_context.symbol_table.values.get(&name) { Some(Symbol { name, ty }) => match ty { - Type::Const(TConst::Custom(typename)) => { + Type::Const(TConst::Custom(_typename)) => { Expr::Lit(Lit::Custom(name.clone())) }, Type::Func(_,_) => match self.values.lookup(&name) {