chore: Fix clippy lints
This commit is contained in:
parent
afb1d6b42f
commit
7792487181
|
@ -96,7 +96,6 @@ pub fn constructor<'gc>(
|
||||||
) -> Result<Value<'gc>, Error<'gc>> {
|
) -> Result<Value<'gc>, Error<'gc>> {
|
||||||
let mut consumed = false;
|
let mut consumed = false;
|
||||||
let called_as_function = this.as_stage_object().is_some();
|
let called_as_function = this.as_stage_object().is_some();
|
||||||
println!("Called as func = {:?}", this);
|
|
||||||
|
|
||||||
let mut array_obj = this;
|
let mut array_obj = this;
|
||||||
|
|
||||||
|
@ -123,12 +122,8 @@ pub fn constructor<'gc>(
|
||||||
let mut length = 0;
|
let mut length = 0;
|
||||||
for arg in args {
|
for arg in args {
|
||||||
if called_as_function {
|
if called_as_function {
|
||||||
array_obj.set_array_element(
|
array_obj.set_array_element(length, arg.to_owned(), context.gc_context);
|
||||||
length,
|
} else {
|
||||||
arg.to_owned(),
|
|
||||||
context.gc_context
|
|
||||||
);
|
|
||||||
}else {
|
|
||||||
array_obj.define_value(
|
array_obj.define_value(
|
||||||
context.gc_context,
|
context.gc_context,
|
||||||
&length.to_string(),
|
&length.to_string(),
|
||||||
|
|
Loading…
Reference in New Issue