aboutsummaryrefslogtreecommitdiffstats
path: root/components
diff options
context:
space:
mode:
authorNoble Chinonso <92822667+Noble14477@users.noreply.github.com>2024-10-21 08:03:55 +0100
committerGitHub <noreply@github.com>2024-10-21 07:03:55 +0000
commit397c5adf79dd278d70d27d80cd6deccea2d97bc8 (patch)
treea6d199523e427d4272f7d7e30f75a55f2f768ab8 /components
parentc550a70f5c4feda7a1fef22a73038a3e887a5c7f (diff)
downloadservo-397c5adf79dd278d70d27d80cd6deccea2d97bc8.tar.gz
servo-397c5adf79dd278d70d27d80cd6deccea2d97bc8.zip
clippy: fix explicit lifetime warning in components\layout_2020\style_ext.rs:320:20 (#33936)
Signed-off-by: Noble <nobleuwuja@gmail.com>
Diffstat (limited to 'components')
-rw-r--r--components/layout_2020/style_ext.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/layout_2020/style_ext.rs b/components/layout_2020/style_ext.rs
index b1ea1110857..68a2e8bdbb5 100644
--- a/components/layout_2020/style_ext.rs
+++ b/components/layout_2020/style_ext.rs
@@ -317,7 +317,7 @@ pub(crate) trait ComputedValuesExt {
impl ComputedValuesExt for ComputedValues {
fn physical_box_offsets(&self) -> PhysicalSides<LengthPercentageOrAuto<'_>> {
- fn convert<'a>(inset: &'a Inset) -> LengthPercentageOrAuto<'a> {
+ fn convert(inset: &Inset) -> LengthPercentageOrAuto<'_> {
match inset {
Inset::LengthPercentage(ref v) => LengthPercentageOrAuto::LengthPercentage(v),
Inset::Auto => LengthPercentageOrAuto::Auto,
@@ -696,7 +696,7 @@ impl ComputedValuesExt for ComputedValues {
}
fn physical_margin(&self) -> PhysicalSides<LengthPercentageOrAuto<'_>> {
- fn convert<'a>(inset: &'a Margin) -> LengthPercentageOrAuto<'a> {
+ fn convert(inset: &Margin) -> LengthPercentageOrAuto<'_> {
match inset {
Margin::LengthPercentage(ref v) => LengthPercentageOrAuto::LengthPercentage(v),
Margin::Auto => LengthPercentageOrAuto::Auto,