From 5dbfa844a37cf00125db891d095d94620ba24879 Mon Sep 17 00:00:00 2001 From: Cody Date: Fri, 14 Apr 2023 04:50:53 -0500 Subject: awful --- crates/sloth_vm/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crates/sloth_vm/src/lib.rs') diff --git a/crates/sloth_vm/src/lib.rs b/crates/sloth_vm/src/lib.rs index 295827d..9cf552b 100644 --- a/crates/sloth_vm/src/lib.rs +++ b/crates/sloth_vm/src/lib.rs @@ -19,9 +19,10 @@ use value::{Object, ObjectType}; use crate::value::Primitive; pub use crate::vm::VM; +#[derive(Default)] pub struct Chunk { - constants: Vec, - code: Vec, + pub constants: Vec, + pub code: Vec, } const STACK_SIZE: usize = 1024; -- cgit v1.2.3