From e8e909b78c4c165ac9bcf74f834a5c7aae12f52d Mon Sep 17 00:00:00 2001 From: Oluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com> Date: Thu, 11 Apr 2024 22:43:35 +0100 Subject: clippy: Fix needless_lifetimes warning (#32049) --- components/shared/script_layout/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'components/shared/script_layout/lib.rs') 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; -- cgit v1.2.3