chore: cargo fmt

This commit is contained in:
2025-05-20 18:30:24 +08:00
parent b4249ccd11
commit 736402dc53
7 changed files with 35 additions and 23 deletions

View File

@@ -44,7 +44,7 @@ impl<'jit: 'vm, 'vm> AttrSet<'jit, 'vm> {
pub fn select(&self, sym: usize) -> Option<Value<'jit, 'vm>> {
self.data.get(&sym).cloned().map(|val| match val {
Value::Builtins(x) => Value::AttrSet(x.upgrade().unwrap()),
val => val
val => val,
})
}

View File

@@ -56,10 +56,7 @@ impl<'vm, 'jit: 'vm> Func<'jit, 'vm> {
use Param::*;
let env = match self.func.param.clone() {
Ident(ident) => self
.env
.clone()
.enter_arg(ident.into(), arg),
Ident(ident) => self.env.clone().enter_arg(ident.into(), arg),
Formals {
formals,
ellipsis,
@@ -92,7 +89,8 @@ impl<'vm, 'jit: 'vm> Func<'jit, 'vm> {
}
self.env.clone().enter_attrs(AttrSet::new(new).into())
}
}.into();
}
.into();
let count = self.count.get();
self.count.replace(count + 1);