aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/layout_dom/shadow_root.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-01-03 19:54:44 +0100
committerGitHub <noreply@github.com>2025-01-03 18:54:44 +0000
commit621ddd749c7655a93547f52a438f2e2941d7df15 (patch)
treeda88d5b18302c99f543809063ba7dfd73645d8f4 /components/script/layout_dom/shadow_root.rs
parent92026cb094ed274037c48831f1bad59430e199af (diff)
downloadservo-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/shadow_root.rs')
-rw-r--r--components/script/layout_dom/shadow_root.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/layout_dom/shadow_root.rs b/components/script/layout_dom/shadow_root.rs
index 0763e150eff..4c42db9d941 100644
--- a/components/script/layout_dom/shadow_root.rs
+++ b/components/script/layout_dom/shadow_root.rs
@@ -18,7 +18,7 @@ pub struct ServoShadowRoot<'dom> {
shadow_root: LayoutDom<'dom, ShadowRoot>,
}
-impl<'dom> fmt::Debug for ServoShadowRoot<'dom> {
+impl fmt::Debug for ServoShadowRoot<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
self.as_node().fmt(f)
}