chore: cargo clippy

This commit is contained in:
2025-05-28 22:47:35 +08:00
parent f3bf44ab97
commit c8276c1729
7 changed files with 13 additions and 14 deletions

View File

@@ -119,7 +119,7 @@ pub fn eval<T, F: for<'gc> FnOnce(Value<'gc>, &mut GcRoot<'gc>, &Mutation<'gc>)
.or_else(|| {
default.map(|idx| {
Value::Thunk(
Thunk::new(root.vm.get_thunk(idx), mc).into(),
Thunk::new(root.vm.get_thunk(idx), mc),
)
})
})
@@ -129,7 +129,7 @@ pub fn eval<T, F: for<'gc> FnOnce(Value<'gc>, &mut GcRoot<'gc>, &Mutation<'gc>)
if let Some(alias) = alias {
new.insert(alias, Value::AttrSet(arg));
}
env.enter_let(Gc::new(mc, new.into()), mc)
env.enter_let(Gc::new(mc, new), mc)
}
};
let count = func.count.get();
@@ -283,7 +283,7 @@ fn single_op<'gc, const CAP: usize>(
.iter()
.map(|(&k, v)| (k, v.clone()))
.collect_into(&mut new);
*env = env.enter_let(Gc::new(mc, new.into()), mc);
*env = env.enter_let(Gc::new(mc, new), mc);
stack
.tos_mut()
.as_mut(mc)
@@ -344,7 +344,7 @@ fn single_op<'gc, const CAP: usize>(
.iter()
.map(|(&k, v)| (k, v.clone()))
.collect_into(&mut new);
*env = env.enter_let(Gc::new(mc, new.into()), mc);
*env = env.enter_let(Gc::new(mc, new), mc);
}
OpCode::LeaveEnv => *env = env.leave(),
OpCode::EnterWithEnv => {