summaryrefslogtreecommitdiff
path: root/matrix-stdlib/src/iter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'matrix-stdlib/src/iter.rs')
-rw-r--r--matrix-stdlib/src/iter.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/matrix-stdlib/src/iter.rs b/matrix-stdlib/src/iter.rs
index 74056ce..630e52c 100644
--- a/matrix-stdlib/src/iter.rs
+++ b/matrix-stdlib/src/iter.rs
@@ -1,16 +1,10 @@
use std::{cell::RefCell, rc::Rc};
use matrix::{iter, vm::Vm, value::Value, Result, unpack_varargs, unpack_args};
use matrix_macros::native_func;
-use crate::{error, VmArgs};
+use crate::{error, next, VmArgs};
use Value as V;
-macro_rules! next {
- ($vm:expr, $frame:expr, $iter:expr) => {
- $vm.run_fn($frame, $iter.clone(), vec![])
- };
-}
-
#[native_func(1)]
fn len(_: VmArgs, args: Vec<Value>) -> Result<Value> {
let [value] = unpack_args!(args);