diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-01-25 10:03:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 09:03:31 +0000 |
commit | 50f56affe35a5565f99226daeb29843246c32b69 (patch) | |
tree | 23a027edebdc2aae64bb37b4ecfd0f48639fa08c /components/layout_2020/sizing.rs | |
parent | 886f6c58d4cd149fe3238d668bd2f9fd5db78071 (diff) | |
download | servo-50f56affe35a5565f99226daeb29843246c32b69.tar.gz servo-50f56affe35a5565f99226daeb29843246c32b69.zip |
Lint layout_2020 with clippy (#31169)
cargo clippy --fix -p layout_2020 --allow-dirty --broken-code
Diffstat (limited to 'components/layout_2020/sizing.rs')
-rw-r--r-- | components/layout_2020/sizing.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/layout_2020/sizing.rs b/components/layout_2020/sizing.rs index afabbbf2154..187093086ed 100644 --- a/components/layout_2020/sizing.rs +++ b/components/layout_2020/sizing.rs @@ -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()), } }), |