diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-03-22 14:48:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-22 13:48:03 +0000 |
commit | bae77671f85481503ab563c20ed488cf883436fa (patch) | |
tree | cd718b8b5e9949052ebde65f9f5f2ce7fc60ef07 /components/script/layout_dom | |
parent | 3e9b8089381492edeb0992c93776d39bf1df2607 (diff) | |
download | servo-bae77671f85481503ab563c20ed488cf883436fa.tar.gz servo-bae77671f85481503ab563c20ed488cf883436fa.zip |
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
Diffstat (limited to 'components/script/layout_dom')
-rw-r--r-- | components/script/layout_dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/layout_dom/node.rs b/components/script/layout_dom/node.rs index 32b4fce1180..ae9d8ec00d1 100644 --- a/components/script/layout_dom/node.rs +++ b/components/script/layout_dom/node.rs @@ -285,7 +285,7 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoThreadSafeLayoutNode<'dom, Layo /// Creates a new `ServoThreadSafeLayoutNode` from the given `ServoLayoutNode`. pub fn new(node: ServoLayoutNode<'dom, LayoutDataType>) -> Self { ServoThreadSafeLayoutNode { - node: node, + node, pseudo: PseudoElementType::Normal, } } |