From f014c1a9d9a984749b9b4aeceae7a68112a1836e Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 24 Jan 2016 16:10:18 -0800 Subject: [PATCH] Kill compiler warnings --- src/eval.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/eval.rs b/src/eval.rs index f81a1df..9490676 100644 --- a/src/eval.rs +++ b/src/eval.rs @@ -7,8 +7,7 @@ struct Varmap { impl Varmap { fn new() -> Varmap { - let mut map = HashMap::new(); - Varmap { map: map } + Varmap { map: HashMap::new()} } } @@ -80,7 +79,7 @@ impl Evaluable for ASTNode { use parser::ASTNode::*; match self { &ExprNode(ref expr) => expr.is_reducible(), - &FuncNode(ref function) => true, + &FuncNode(_) => true, } } }