clippy: Fix many warnings in components/script (#31717)

* Fix Several clippy warnings

* Fix Build errors

* Fix Unused import

* Fix requested changes

* Fix rustfmt

* Minor fixes

---------

Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Richard Dushime 2024-03-19 19:05:56 +03:00 committed by GitHub
parent 676f655647
commit 01ca220f83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 200 additions and 212 deletions

View file

@ -83,7 +83,7 @@ fn close_the_websocket_connection(
code: code,
reason: Some(reason),
};
let _ = task_source.queue_with_canceller(close_task, &canceller);
let _ = task_source.queue_with_canceller(close_task, canceller);
}
fn fail_the_websocket_connection(
@ -97,7 +97,7 @@ fn fail_the_websocket_connection(
code: Some(close_code::ABNORMAL),
reason: None,
};
let _ = task_source.queue_with_canceller(close_task, &canceller);
let _ = task_source.queue_with_canceller(close_task, canceller);
}
#[dom_struct]