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/dom/element.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/dom/element.rs')
-rw-r--r-- | components/script/dom/element.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/element.rs b/components/script/dom/element.rs index b84e6739f9e..b7c2949660f 100644 --- a/components/script/dom/element.rs +++ b/components/script/dom/element.rs @@ -681,7 +681,7 @@ pub trait LayoutElementHelpers<'dom> { fn get_attr_vals_for_layout(self, name: &LocalName) -> Vec<&'dom AttrValue>; } -impl<'dom> LayoutDom<'dom, Element> { +impl LayoutDom<'_, Element> { pub(super) fn focus_state(self) -> bool { self.unsafe_get().state.get().contains(ElementState::FOCUS) } @@ -4361,7 +4361,7 @@ pub enum AttributeMutation<'a> { Removed, } -impl<'a> AttributeMutation<'a> { +impl AttributeMutation<'_> { pub fn is_removal(&self) -> bool { match *self { AttributeMutation::Removed => true, |