1
0
This commit is contained in:
Jeff 2024-11-15 19:19:31 -05:00
parent 302bc9ce6c
commit 69458a138d
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
use std::io::{self, stdout, Write};
use crate::{Instruction, NativeFunctionError, Span, Value, Vm, VmError};
use crate::{Instruction, NativeFunctionError, Value, Vm, VmError};
pub fn panic(vm: &Vm, instruction: Instruction) -> Result<Option<Value>, VmError> {
let argument_count = instruction.c();

View File

@ -251,7 +251,7 @@ impl Clone for Value {
Value::Function(function) => Value::Function(function.clone()),
Value::Integer(integer) => Value::Integer(*integer),
Value::List(list) => Value::List(list.clone()),
Value::Range(range) => Value::Range(range.clone()),
Value::Range(range) => Value::Range(*range),
Value::String(string) => Value::String(string.clone()),
}
}

View File

@ -616,7 +616,7 @@ impl<'a> Vm<'a> {
}
#[derive(Clone, Debug, PartialEq)]
enum Register {
pub enum Register {
Empty,
Value(Value),
Pointer(Pointer),