fix: release eq

This commit is contained in:
2025-07-05 21:07:23 +08:00
parent 5625f28e9b
commit 4b567ab022
22 changed files with 1132 additions and 915 deletions

View File

@@ -1,7 +1,6 @@
use core::fmt::Debug;
use std::rc::Rc;
use ecow::EcoString;
use hashbrown::HashMap;
use crate::error::Result;
@@ -10,7 +9,7 @@ use crate::ty::internal::Value;
#[derive(Clone, Debug)]
pub struct Env {
cache: Vec<HashMap<usize, Value>>,
with: Vec<Rc<HashMap<EcoString, Value>>>,
with: Vec<Rc<HashMap<String, Value>>>,
args: Vec<Value>,
}
@@ -106,7 +105,7 @@ impl Env {
self.with.pop();
}
pub fn enter_with(&mut self, map: Rc<HashMap<EcoString, Value>>) {
pub fn enter_with(&mut self, map: Rc<HashMap<String, Value>>) {
self.with.push(map)
}
}