chore: appease clippy
This commit is contained in:
parent
901d84b2cf
commit
043f7cdea7
|
@ -867,19 +867,17 @@ impl<'gc> TObject<'gc> for ClassObject<'gc> {
|
||||||
let func = Executable::from_method(call_handler, scope, None, Some(self));
|
let func = Executable::from_method(call_handler, scope, None, Some(self));
|
||||||
|
|
||||||
func.exec(receiver, arguments, activation, self.into())
|
func.exec(receiver, arguments, activation, self.into())
|
||||||
|
} else if arguments.len() == 1 {
|
||||||
|
arguments[0].coerce_to_type(activation, self.inner_class_definition())
|
||||||
} else {
|
} else {
|
||||||
if arguments.len() == 1 {
|
Err(Error::AvmError(argument_error(
|
||||||
arguments[0].coerce_to_type(activation, self.inner_class_definition())
|
activation,
|
||||||
} else {
|
&format!(
|
||||||
Err(Error::AvmError(argument_error(
|
"Error #1112: Argument count mismatch on class coercion. Expected 1, got {}.",
|
||||||
activation,
|
arguments.len()
|
||||||
&format!(
|
),
|
||||||
"Error #1112: Argument count mismatch on class coercion. Expected 1, got {}.",
|
1112,
|
||||||
arguments.len()
|
)?))
|
||||||
),
|
|
||||||
1112,
|
|
||||||
)?))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue