resolve snapshot tests

This commit is contained in:
Stefan
2025-09-03 00:12:28 +02:00
parent 042eb232e6
commit f1dff9be48
29 changed files with 425 additions and 383 deletions
+2 -6
View File
@@ -1,8 +1,6 @@
use ahash::AHasher;
use ahash::HashMap;
use serde::ser::SerializeMap;
use serde::{Serialize, Serializer};
use std::collections::HashMap;
use std::hash::BuildHasherDefault;
use std::rc::Rc;
use std::sync::Arc;
use thiserror::Error;
@@ -16,8 +14,6 @@ use crate::variable::Variable;
use crate::vm::{VMError, VM};
use crate::{Expression, ExpressionKind};
type ADefHasher = BuildHasherDefault<AHasher>;
/// Isolate is a component that encapsulates an isolated environment for executing expressions.
///
/// Rerunning the Isolate allows for efficient memory reuse through an arena allocator.
@@ -32,7 +28,7 @@ pub struct Isolate<'arena> {
bump: UnsafeArena<'arena>,
environment: Option<Variable>,
references: HashMap<String, Variable, ADefHasher>,
references: HashMap<String, Variable>,
}
impl<'a> Isolate<'a> {