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

@@ -32,7 +32,7 @@ impl<'gc> Deref for AttrSet<'gc> {
}
}
impl<'jit: 'vm, 'vm, 'gc> AttrSet<'gc> {
impl<'gc> AttrSet<'gc> {
pub fn with_capacity(cap: usize) -> Self {
AttrSet {
data: HashMap::with_capacity(cap),

View File

@@ -102,7 +102,7 @@ impl<'gc> Func<'gc> {
.select(formal)
.or_else(|| {
default
.map(|idx| Value::Thunk(Thunk::new(vm.get_thunk(idx), mc).into()))
.map(|idx| Value::Thunk(Thunk::new(vm.get_thunk(idx), mc)))
})
.unwrap();
new.insert(formal, arg);
@@ -110,7 +110,7 @@ impl<'gc> Func<'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)
}
};

View File

@@ -177,7 +177,7 @@ impl<'gc> Value<'gc> {
}
}
impl<'jit: 'vm, 'vm, 'gc> PartialEq for Value<'gc> {
impl<'gc> PartialEq for Value<'gc> {
fn eq(&self, other: &Self) -> bool {
use Value::*;
match (self, other) {

View File

@@ -51,7 +51,7 @@ pub struct PartialPrimOp<'gc> {
func: fn(Vec<Value<'gc>>, &VM, &Mutation<'gc>) -> Result<Value<'gc>>,
}
unsafe impl<'jit: 'vm, 'vm, 'gc> Collect<'gc> for PartialPrimOp<'gc> {
unsafe impl<'gc> Collect<'gc> for PartialPrimOp<'gc> {
fn trace<Tr: gc_arena::collect::Trace<'gc>>(&self, cc: &mut Tr) {
for v in self.args.iter() {
v.trace(cc);