mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
cargo fix --edition-idioms
This commit is contained in:
parent
b1fd6237d1
commit
2012be4a8b
203 changed files with 665 additions and 1281 deletions
|
@ -27,7 +27,7 @@ pub trait LayoutDamageComputation {
|
|||
fn reflow_entire_document(self);
|
||||
}
|
||||
|
||||
impl<'a> LayoutDamageComputation for &'a mut Flow {
|
||||
impl<'a> LayoutDamageComputation for &'a mut dyn Flow {
|
||||
fn compute_layout_damage(self) -> SpecialRestyleDamage {
|
||||
let mut special_damage = SpecialRestyleDamage::empty();
|
||||
let is_absolutely_positioned = self
|
||||
|
@ -53,7 +53,7 @@ impl<'a> LayoutDamageComputation for &'a mut Flow {
|
|||
.damage_for_child(is_absolutely_positioned, child_is_absolutely_positioned),
|
||||
);
|
||||
{
|
||||
let kid: &mut Flow = kid;
|
||||
let kid: &mut dyn Flow = kid;
|
||||
special_damage.insert(kid.compute_layout_damage());
|
||||
}
|
||||
self_base.restyle_damage.insert(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue