chore: cargo clippy
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user