Remove unbox/cast step in eval

This commit is contained in:
jonathandturner
2016-03-16 18:32:05 -04:00
parent 254f4b081c
commit cfac566425
6 changed files with 69 additions and 55 deletions

View File

@@ -27,7 +27,7 @@ fn main() {
let mut contents = String::new();
if let Ok(_) = f.read_to_string(&mut contents) {
match engine.eval(&contents) {
match engine.eval::<()>(&contents) {
Ok(_) => (),
Err(e) => {println!("Error: {:?}", e)}
}