mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Fix some rust-clippy violations
This commit is contained in:
parent
1dfc0481ef
commit
16fa9cabc9
11 changed files with 37 additions and 42 deletions
|
@ -1024,17 +1024,12 @@ impl BlockFlow {
|
|||
let mut candidate_block_size_iterator = CandidateBSizeIterator::new(
|
||||
&self.fragment,
|
||||
self.base.block_container_explicit_block_size);
|
||||
loop {
|
||||
match candidate_block_size_iterator.next() {
|
||||
Some(candidate_block_size) => {
|
||||
candidate_block_size_iterator.candidate_value =
|
||||
match candidate_block_size {
|
||||
MaybeAuto::Auto => block_size,
|
||||
MaybeAuto::Specified(value) => value
|
||||
}
|
||||
while let Some(candidate_block_size) = candidate_block_size_iterator.next() {
|
||||
candidate_block_size_iterator.candidate_value =
|
||||
match candidate_block_size {
|
||||
MaybeAuto::Auto => block_size,
|
||||
MaybeAuto::Specified(value) => value
|
||||
}
|
||||
None => break,
|
||||
}
|
||||
}
|
||||
|
||||
// Adjust `cur_b` as necessary to account for the explicitly-specified block-size.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue