diff options
author | Martin Robinson <mrobinson@igalia.com> | 2025-01-03 19:54:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-03 18:54:44 +0000 |
commit | 621ddd749c7655a93547f52a438f2e2941d7df15 (patch) | |
tree | da88d5b18302c99f543809063ba7dfd73645d8f4 /components/script/layout_dom/node.rs | |
parent | 92026cb094ed274037c48831f1bad59430e199af (diff) | |
download | servo-621ddd749c7655a93547f52a438f2e2941d7df15.tar.gz servo-621ddd749c7655a93547f52a438f2e2941d7df15.zip |
Elide lifetimes where possible after rustup (#34824)
The new version of rust allows us to elide some lifetimes and clippy is
now complaining about this. This change elides them where possible and
removes the clippy exceptions.
Fixes #34804.
Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'components/script/layout_dom/node.rs')
-rw-r--r-- | components/script/layout_dom/node.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/layout_dom/node.rs b/components/script/layout_dom/node.rs index 0b2b939cda4..20993d7263c 100644 --- a/components/script/layout_dom/node.rs +++ b/components/script/layout_dom/node.rs @@ -59,7 +59,7 @@ pub struct ServoLayoutNode<'dom> { unsafe impl Send for ServoLayoutNode<'_> {} unsafe impl Sync for ServoLayoutNode<'_> {} -impl<'dom> fmt::Debug for ServoLayoutNode<'dom> { +impl fmt::Debug for ServoLayoutNode<'_> { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { if let Some(el) = self.as_element() { el.fmt(f) @@ -95,7 +95,7 @@ impl<'dom> ServoLayoutNode<'dom> { } } -impl<'dom> style::dom::NodeInfo for ServoLayoutNode<'dom> { +impl style::dom::NodeInfo for ServoLayoutNode<'_> { fn is_element(&self) -> bool { self.node.is_element_for_layout() } @@ -262,7 +262,7 @@ impl<'dom> ServoThreadSafeLayoutNode<'dom> { } } -impl<'dom> style::dom::NodeInfo for ServoThreadSafeLayoutNode<'dom> { +impl style::dom::NodeInfo for ServoThreadSafeLayoutNode<'_> { fn is_element(&self) -> bool { self.node.is_element() } |