mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Fix for #8593 'loop..match' should be 'while let'
changed line 641 of constellation.rs to while let added while let at line 1201 in constellation.rs added while let to line 1199 in block.rs
This commit is contained in:
parent
a5babb89a0
commit
99acd46c48
3 changed files with 29 additions and 47 deletions
|
@ -1196,24 +1196,19 @@ impl BlockFlow {
|
|||
|
||||
// Can't use `for` because we assign to
|
||||
// `candidate_block_size_iterator.candidate_value`.
|
||||
loop {
|
||||
match candidate_block_size_iterator.next() {
|
||||
Some(block_size_used_val) => {
|
||||
solution = Some(
|
||||
BSizeConstraintSolution::solve_vertical_constraints_abs_nonreplaced(
|
||||
block_size_used_val,
|
||||
margin_block_start,
|
||||
margin_block_end,
|
||||
block_start,
|
||||
block_end,
|
||||
content_block_size,
|
||||
available_block_size));
|
||||
while let Some(block_size_used_val) = candidate_block_size_iterator.next() {
|
||||
solution = Some(
|
||||
BSizeConstraintSolution::solve_vertical_constraints_abs_nonreplaced(
|
||||
block_size_used_val,
|
||||
margin_block_start,
|
||||
margin_block_end,
|
||||
block_start,
|
||||
block_end,
|
||||
content_block_size,
|
||||
available_block_size));
|
||||
|
||||
candidate_block_size_iterator.candidate_value
|
||||
= solution.unwrap().block_size;
|
||||
}
|
||||
None => break,
|
||||
}
|
||||
candidate_block_size_iterator.candidate_value
|
||||
= solution.unwrap().block_size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue