diff options
author | Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> | 2024-04-11 22:43:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 21:43:35 +0000 |
commit | e8e909b78c4c165ac9bcf74f834a5c7aae12f52d (patch) | |
tree | 601675d1dd25454ff37efcab1f9dfb8b7ac8608c /components/shared/script_layout/lib.rs | |
parent | 0a860bd92874f0eb4ab3756b14feb5eab68e9885 (diff) | |
download | servo-e8e909b78c4c165ac9bcf74f834a5c7aae12f52d.tar.gz servo-e8e909b78c4c165ac9bcf74f834a5c7aae12f52d.zip |
clippy: Fix needless_lifetimes warning (#32049)
Diffstat (limited to 'components/shared/script_layout/lib.rs')
-rw-r--r-- | components/shared/script_layout/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/shared/script_layout/lib.rs b/components/shared/script_layout/lib.rs index 20d8c982dc2..b36c0c4ef56 100644 --- a/components/shared/script_layout/lib.rs +++ b/components/shared/script_layout/lib.rs @@ -182,7 +182,7 @@ pub trait Layout { /// Get a reference to this Layout's Stylo `Device` used to handle media queries and /// resolve font metrics. - fn device<'a>(&'a self) -> &'a Device; + fn device(&self) -> &Device; /// Whether or not this layout is waiting for fonts from loaded stylesheets to finish loading. fn waiting_for_web_fonts_to_load(&self) -> bool; |