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/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/script/dom/node.rs') diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 8ea043af2c8..089e73cf889 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -2803,7 +2803,7 @@ impl NodeMethods for Node { .ranges .drain_to_preceding_text_sibling(&sibling, &node, length); self.ranges - .move_to_text_child_at(self, index as u32, &node, length as u32); + .move_to_text_child_at(self, index as u32, &node, length); let sibling_cdata = sibling.downcast::().unwrap(); length += sibling_cdata.Length(); cdata.append_data(&sibling_cdata.data()); -- cgit v1.2.3