mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Rustfmt recent changes.
This commit is contained in:
parent
c7f30ad0df
commit
2a6cdaa30a
22 changed files with 141 additions and 172 deletions
|
@ -698,16 +698,16 @@ impl generic::LineDirection for LineDirection {
|
|||
// These percentage values can also be keywords.
|
||||
let x = match *x {
|
||||
OriginComponent::Center => true,
|
||||
OriginComponent::Length(LengthPercentage::Percentage(
|
||||
ComputedPercentage(val),
|
||||
)) => val == 0.5,
|
||||
OriginComponent::Length(LengthPercentage::Percentage(ComputedPercentage(
|
||||
val,
|
||||
))) => val == 0.5,
|
||||
_ => false,
|
||||
};
|
||||
let y = match *y {
|
||||
OriginComponent::Side(Y::Top) => true,
|
||||
OriginComponent::Length(LengthPercentage::Percentage(
|
||||
ComputedPercentage(val),
|
||||
)) => val == 0.0,
|
||||
OriginComponent::Length(LengthPercentage::Percentage(ComputedPercentage(
|
||||
val,
|
||||
))) => val == 0.0,
|
||||
_ => false,
|
||||
};
|
||||
x && y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue