chore: cargo fmt

This commit is contained in:
2025-05-19 19:40:26 +08:00
parent 9e172bf013
commit b4db46d48a
4 changed files with 44 additions and 33 deletions

View File

@@ -67,21 +67,22 @@ impl<'jit, 'vm> WithEnv<'jit, 'vm> {
}
pub fn enter_with(self, new: Rc<AttrSet<'jit, 'vm>>) -> Self {
let map = Rc::new(new
.as_inner()
.iter()
.map(|(&k, v)| {
(
k,
if let Value::Builtins(weak) = v {
Value::AttrSet(weak.upgrade().unwrap())
} else {
v.clone()
},
)
})
.collect::<HashMap<_, _>>()
.into());
let map = Rc::new(
new.as_inner()
.iter()
.map(|(&k, v)| {
(
k,
if let Value::Builtins(weak) = v {
Value::AttrSet(weak.upgrade().unwrap())
} else {
v.clone()
},
)
})
.collect::<HashMap<_, _>>()
.into(),
);
let last = Some(self.into());
WithEnv { last, map }
}