mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Lint layout_2020 with clippy (#31169)
cargo clippy --fix -p layout_2020 --allow-dirty --broken-code
This commit is contained in:
parent
886f6c58d4
commit
50f56affe3
30 changed files with 224 additions and 244 deletions
|
@ -67,11 +67,11 @@ impl<'a, T> ContainingBlockManager<'a, T> {
|
|||
&self,
|
||||
for_non_absolute_descendants: &'a T,
|
||||
) -> Self {
|
||||
return ContainingBlockManager {
|
||||
ContainingBlockManager {
|
||||
for_non_absolute_descendants,
|
||||
for_absolute_descendants: self.for_absolute_descendants,
|
||||
for_absolute_and_fixed_descendants: self.for_absolute_and_fixed_descendants,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn new_for_absolute_descendants(
|
||||
|
@ -79,11 +79,11 @@ impl<'a, T> ContainingBlockManager<'a, T> {
|
|||
for_non_absolute_descendants: &'a T,
|
||||
for_absolute_descendants: &'a T,
|
||||
) -> Self {
|
||||
return ContainingBlockManager {
|
||||
ContainingBlockManager {
|
||||
for_non_absolute_descendants,
|
||||
for_absolute_descendants: Some(for_absolute_descendants),
|
||||
for_absolute_and_fixed_descendants: self.for_absolute_and_fixed_descendants,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn new_for_absolute_and_fixed_descendants(
|
||||
|
@ -91,10 +91,10 @@ impl<'a, T> ContainingBlockManager<'a, T> {
|
|||
for_non_absolute_descendants: &'a T,
|
||||
for_absolute_and_fixed_descendants: &'a T,
|
||||
) -> Self {
|
||||
return ContainingBlockManager {
|
||||
ContainingBlockManager {
|
||||
for_non_absolute_descendants,
|
||||
for_absolute_descendants: None,
|
||||
for_absolute_and_fixed_descendants,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue