aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e83d11f..8cf9b36 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,4 @@
use std::path::Path;
-use std::rc::Rc;
pub mod compiler;
pub mod tokenizer;
@@ -23,7 +22,7 @@ pub fn run(tokens: TokenStream, path: &Path, print: bool) -> Result<(), Vec<Erro
Ok(blocks) => {
let mut vm = vm::VM::new().print_blocks(print).print_ops(print);
vm.typecheck(&blocks)?;
- if let Err(e) = vm.run(Rc::clone(&blocks[0])) {
+ if let Err(e) = vm.run(&blocks) {
Err(vec![e])
} else {
Ok(())