mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
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
This commit is contained in:
parent
3e9b808938
commit
bae77671f8
21 changed files with 32 additions and 45 deletions
|
@ -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::<CharacterData>().unwrap();
|
||||
length += sibling_cdata.Length();
|
||||
cdata.append_data(&sibling_cdata.data());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue