From bae77671f85481503ab563c20ed488cf883436fa Mon Sep 17 00:00:00 2001 From: Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:48:03 +0100 Subject: clippy: Fix `unnecessary_cast` warnings in `components/script` (#31823) * clippy: Fix unnecessary cast warnings * clippy: Replace redundant field names with their shorthand alternatives * clippy: Delete struct pattern dereferencings --- components/script/dom/htmlformelement.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/htmlformelement.rs') diff --git a/components/script/dom/htmlformelement.rs b/components/script/dom/htmlformelement.rs index b5312932bfe..4793f5a6af7 100644 --- a/components/script/dom/htmlformelement.rs +++ b/components/script/dom/htmlformelement.rs @@ -393,7 +393,7 @@ impl HTMLFormElementMethods for HTMLFormElement { // https://html.spec.whatwg.org/multipage/#dom-form-length fn Length(&self) -> u32 { - self.Elements().Length() as u32 + self.Elements().Length() } // https://html.spec.whatwg.org/multipage/#dom-form-item -- cgit v1.2.3