mirror of
https://github.com/gorules/zen.git
synced 2026-10-06 16:02:19 +00:00
resolve snapshot tests
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user