aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_dom/node.rs
diff options
context:
space:
mode:
authoreri <eri@inventati.org>2024-03-12 18:22:05 +0100
committerGitHub <noreply@github.com>2024-03-12 17:22:05 +0000
commit21939c2ba89806aa548553f7d3d3b039fa41ae0b (patch)
treefb16fc3c4fc6a7a66c7a7a866a6f9565bb328014 /components/script/layout_dom/node.rs
parent4efebf1e6207a57d7e68f637ee3fe9ce34ee0fd0 (diff)
downloadservo-21939c2ba89806aa548553f7d3d3b039fa41ae0b.tar.gz
servo-21939c2ba89806aa548553f7d3d3b039fa41ae0b.zip
clippy: Fix warnings in `components/shared` (#31627)
* clippy: fix warnings in `components/shared` * fix: formatting derive * fix: rename new to default
Diffstat (limited to 'components/script/layout_dom/node.rs')
-rw-r--r--components/script/layout_dom/node.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/layout_dom/node.rs b/components/script/layout_dom/node.rs
index 9ce25c78f84..ceacbeb7c88 100644
--- a/components/script/layout_dom/node.rs
+++ b/components/script/layout_dom/node.rs
@@ -211,7 +211,7 @@ impl<'dom, LayoutDataType: LayoutDataTrait> LayoutNode<'dom>
unsafe fn initialize_data(&self) {
if self.get_style_and_opaque_layout_data().is_none() {
let opaque = StyleAndOpaqueLayoutData::new(
- StyleData::new(),
+ StyleData::default(),
AtomicRefCell::new(LayoutDataType::default()),
);
self.init_style_and_opaque_layout_data(opaque);