mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #7556 - ddrmanxbxfr:MutabilityCleanup, r=Ms2ger
Remove unnecessary `mut` on variables declared in components/layout/block.rs Small cleanup over mutable variables in components/layout/block.rs. Thanks for looking into it! <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7556) <!-- Reviewable:end -->
This commit is contained in:
commit
282f9ade93
1 changed files with 3 additions and 3 deletions
|
@ -2436,7 +2436,7 @@ pub trait ISizeAndMarginsComputer {
|
|||
|
||||
// Invariant: inline-start_margin + inline-size + inline-end_margin ==
|
||||
// available_inline-size
|
||||
let (inline_start_margin, mut inline_size, inline_end_margin) =
|
||||
let (inline_start_margin, inline_size, inline_end_margin) =
|
||||
match (inline_start_margin, computed_inline_size, inline_end_margin) {
|
||||
// If all have a computed value other than 'auto', the system is over-constrained.
|
||||
(MaybeAuto::Specified(margin_start),
|
||||
|
@ -2922,7 +2922,7 @@ impl ISizeAndMarginsComputer for InlineBlockNonReplaced {
|
|||
block: &mut BlockFlow,
|
||||
input: &ISizeConstraintInput)
|
||||
-> ISizeConstraintSolution {
|
||||
let (mut computed_inline_size,
|
||||
let (computed_inline_size,
|
||||
inline_start_margin,
|
||||
inline_end_margin,
|
||||
available_inline_size) =
|
||||
|
@ -2963,7 +2963,7 @@ impl ISizeAndMarginsComputer for InlineBlockReplaced {
|
|||
MaybeAuto::Auto => false,
|
||||
});
|
||||
|
||||
let (mut computed_inline_size,
|
||||
let (computed_inline_size,
|
||||
inline_start_margin,
|
||||
inline_end_margin,
|
||||
available_inline_size) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue