mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +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
|
@ -113,14 +113,14 @@ pub(crate) fn outer_inline(
|
|||
BoxSizing::BorderBox => clamped,
|
||||
};
|
||||
ContentSizes {
|
||||
min_content: border_box_size.into(),
|
||||
max_content: border_box_size.into(),
|
||||
min_content: border_box_size,
|
||||
max_content: border_box_size,
|
||||
}
|
||||
},
|
||||
None => get_content_size().map(|content_box_size| {
|
||||
match box_sizing {
|
||||
// Clamp to 'min-width' and 'max-width', which are sizing the…
|
||||
BoxSizing::ContentBox => clamp(content_box_size.into()) + pb_lengths.into(),
|
||||
BoxSizing::ContentBox => clamp(content_box_size) + pb_lengths.into(),
|
||||
BoxSizing::BorderBox => clamp(content_box_size + pb_lengths.into()),
|
||||
}
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue