mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
clippy: Fix warnings in components/layout
(#31612)
* clippy: fix warnings in components/layout * fix: formatting
This commit is contained in:
parent
7f1ef4c7fe
commit
a6e25d555b
17 changed files with 129 additions and 150 deletions
|
@ -988,10 +988,10 @@ fn process_resolved_style_request_internal<'dom>(
|
|||
},
|
||||
};
|
||||
|
||||
let positioned = match style.get_box().position {
|
||||
Position::Relative | Position::Sticky | Position::Fixed | Position::Absolute => true,
|
||||
_ => false,
|
||||
};
|
||||
let positioned = matches!(
|
||||
style.get_box().position,
|
||||
Position::Relative | Position::Sticky | Position::Fixed | Position::Absolute
|
||||
);
|
||||
|
||||
//TODO: determine whether requested property applies to the element.
|
||||
// eg. width does not apply to non-replaced inline elements.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue