clippy: Fix various clippy problems in components/scripts/dom (#31910)

* boxing is unnecessary

* boxing is unnecessary

* boxing is unnecessary

* boxing is unnecessary

* fix

* fix

* fix

* Update globalscope.rs
This commit is contained in:
Rosemary Ajayi 2024-03-31 20:21:52 +00:00 committed by GitHub
parent 9243e8cf71
commit 673eaa569a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -654,7 +654,7 @@ impl HTMLFormElement {
}
// https://html.spec.whatwg.org/multipage/#text/plain-encoding-algorithm
fn encode_plaintext(&self, form_data: &mut Vec<FormDatum>) -> String {
fn encode_plaintext(&self, form_data: &mut [FormDatum]) -> String {
// Step 1
let mut result = String::new();