mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rustfmt recent changes.
This commit is contained in:
parent
c7f30ad0df
commit
2a6cdaa30a
22 changed files with 141 additions and 172 deletions
|
@ -922,12 +922,9 @@ impl LengthPercentageOrAuto {
|
|||
return Ok(LengthPercentageOrAuto::Auto);
|
||||
}
|
||||
|
||||
Ok(LengthPercentageOrAuto::LengthPercentage(LengthPercentage::parse_internal(
|
||||
context,
|
||||
input,
|
||||
num_context,
|
||||
allow_quirks,
|
||||
)?))
|
||||
Ok(LengthPercentageOrAuto::LengthPercentage(
|
||||
LengthPercentage::parse_internal(context, input, num_context, allow_quirks)?,
|
||||
))
|
||||
}
|
||||
|
||||
/// Parse a non-negative length, percentage, or auto.
|
||||
|
@ -1052,12 +1049,9 @@ impl LengthPercentageOrNone {
|
|||
return Ok(LengthPercentageOrNone::None);
|
||||
}
|
||||
|
||||
Ok(LengthPercentageOrNone::LengthPercentage(LengthPercentage::parse_internal(
|
||||
context,
|
||||
input,
|
||||
num_context,
|
||||
allow_quirks,
|
||||
)?))
|
||||
Ok(LengthPercentageOrNone::LengthPercentage(
|
||||
LengthPercentage::parse_internal(context, input, num_context, allow_quirks)?,
|
||||
))
|
||||
}
|
||||
|
||||
/// Parse a non-negative LengthPercentageOrNone.
|
||||
|
@ -1117,8 +1111,7 @@ impl Parse for NonNegativeLengthPercentage {
|
|||
context: &ParserContext,
|
||||
input: &mut Parser<'i, 't>,
|
||||
) -> Result<Self, ParseError<'i>> {
|
||||
LengthPercentage::parse_non_negative(context, input)
|
||||
.map(NonNegative::<LengthPercentage>)
|
||||
LengthPercentage::parse_non_negative(context, input).map(NonNegative::<LengthPercentage>)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue