chore: Fix a warning

This commit is contained in:
sleepycatcoding 2023-08-02 00:50:09 +03:00 committed by Nathan Adams
parent dccf254281
commit 705042c1ee
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ pub fn connect<'gc>(
this: Object<'gc>, this: Object<'gc>,
args: &[Value<'gc>], args: &[Value<'gc>],
) -> Result<Value<'gc>, Error<'gc>> { ) -> Result<Value<'gc>, Error<'gc>> {
if let Some(xml_socket) = XmlSocket::cast(this.into()) { if let Some(_) = XmlSocket::cast(this.into()) {
// FIXME: When host is null, use the current movie domain. // FIXME: When host is null, use the current movie domain.
let host = args.get(0).unwrap_or(&Value::Undefined).coerce_to_string(activation)?; let host = args.get(0).unwrap_or(&Value::Undefined).coerce_to_string(activation)?;
let port = args.get(1).unwrap_or(&Value::Undefined).coerce_to_u16(activation)?; let port = args.get(1).unwrap_or(&Value::Undefined).coerce_to_u16(activation)?;