fix: release eq
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user