aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmllabelelement.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-29 12:59:07 +0100
committerGitHub <noreply@github.com>2024-03-29 11:59:07 +0000
commit4a68243f65c4fc32a4d12faa21d9c36e02a05f52 (patch)
treea8a33be23f7f035f4e655ffade86c3cd4535384e /components/script/dom/htmllabelelement.rs
parenta8976ff00a9a3fd7ed11bcabc765aa2f2aeff0dc (diff)
downloadservo-4a68243f65c4fc32a4d12faa21d9c36e02a05f52.tar.gz
servo-4a68243f65c4fc32a4d12faa21d9c36e02a05f52.zip
clippy: Fix needless_lifetimes warnings (#31933)
Diffstat (limited to 'components/script/dom/htmllabelelement.rs')
-rw-r--r--components/script/dom/htmllabelelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmllabelelement.rs b/components/script/dom/htmllabelelement.rs
index bb68baf7fe7..4f608afcff5 100644
--- a/components/script/dom/htmllabelelement.rs
+++ b/components/script/dom/htmllabelelement.rs
@@ -190,7 +190,7 @@ impl FormControl for HTMLLabelElement {
// form owner. Therefore it doesn't hold form owner itself.
}
- fn to_element<'a>(&'a self) -> &'a Element {
+ fn to_element(&self) -> &Element {
self.upcast::<Element>()
}
}