mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
clippy: fix explicit lifetime warning in components\layout_2020\style_ext.rs:320:20 (#33936)
Signed-off-by: Noble <nobleuwuja@gmail.com>
This commit is contained in:
parent
c550a70f5c
commit
397c5adf79
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue