From 04ea8c5ebc59b02f01bf99a30aa0b59e6c80855e Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 19 Aug 2018 15:06:01 -0700 Subject: [PATCH] More unused code removal --- schala-lang/src/eval.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schala-lang/src/eval.rs b/schala-lang/src/eval.rs index fa55718..ba6dc23 100644 --- a/schala-lang/src/eval.rs +++ b/schala-lang/src/eval.rs @@ -106,7 +106,7 @@ impl Expr { UserDefined { name: Some(name), .. } => format!("", name), }, Expr::Constructor { - type_name, name, tag, arity, + type_name: _, name, tag, arity, } => if *arity == 0 { format!("{}", name) } else { @@ -281,7 +281,7 @@ impl<'a> State<'a> { let evaled_args: Result, String> = args.into_iter().map(|arg| { match self.expression(Node::Expr(arg)) { Ok(Node::Expr(e)) => Ok(e), - Ok(Node::PrimTuple { items }) => Err(format!("Trying to apply a builtin to a tuple")), + Ok(Node::PrimTuple { .. }) => Err(format!("Trying to apply a builtin to a tuple")), Ok(Node::PrimObject { .. }) => Err(format!("Trying to apply a builtin to a primitive object")), Err(e) => Err(e) }