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