chore: Fix clippy warning

This commit is contained in:
sleepycatcoding 2023-08-02 01:21:20 +03:00 committed by Nathan Adams
parent 87b7af4370
commit 783527fbad
1 changed files with 2 additions and 2 deletions

View File

@ -111,10 +111,10 @@ 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(_) = XmlSocket::cast(this.into()) { if XmlSocket::cast(this.into()).is_some() {
let host = args let host = args
.get(0) .get(0)
.map(|v| *v) .copied()
.unwrap_or_else(|| { .unwrap_or_else(|| {
let movie = activation.base_clip().movie(); let movie = activation.base_clip().movie();