mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
style: Fix formatting of recent changes.
This commit is contained in:
parent
cea6966fd2
commit
4d8fc4b8f7
9 changed files with 157 additions and 160 deletions
|
@ -169,8 +169,7 @@ impl TrackRepeat<LengthPercentage, Integer> {
|
|||
let mut current_names;
|
||||
|
||||
loop {
|
||||
current_names =
|
||||
input.try(parse_line_names).unwrap_or_default();
|
||||
current_names = input.try(parse_line_names).unwrap_or_default();
|
||||
if let Ok(track_size) = input.try(|i| TrackSize::parse(context, i)) {
|
||||
if !track_size.is_fixed() {
|
||||
if is_auto {
|
||||
|
@ -193,11 +192,7 @@ impl TrackRepeat<LengthPercentage, Integer> {
|
|||
// one `TrackSize`. But in current version of the spec, this is deprecated
|
||||
// but we are adding this for gecko parity. We should remove this when
|
||||
// gecko implements new spec.
|
||||
names.push(
|
||||
input
|
||||
.try(parse_line_names)
|
||||
.unwrap_or_default()
|
||||
);
|
||||
names.push(input.try(parse_line_names).unwrap_or_default());
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
@ -239,11 +234,7 @@ impl Parse for TrackList<LengthPercentage, Integer> {
|
|||
// assume that everything is <fixed-size>. This flag is useful when we encounter <auto-repeat>
|
||||
let mut at_least_one_not_fixed = false;
|
||||
loop {
|
||||
current_names.extend_from_slice(
|
||||
&mut input
|
||||
.try(parse_line_names)
|
||||
.unwrap_or_default()
|
||||
);
|
||||
current_names.extend_from_slice(&mut input.try(parse_line_names).unwrap_or_default());
|
||||
if let Ok(track_size) = input.try(|i| TrackSize::parse(context, i)) {
|
||||
if !track_size.is_fixed() {
|
||||
at_least_one_not_fixed = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue