mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update to rust 1.85 (#35628)
* Update to rust 1.85 This is needed for cargo-deny Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Upgrade crown Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Clippy fixes Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Re-upgrade cargo-deny to 0.18 Keeping it locked to 0.18 just in case they update their required rustc version again Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
parent
d78f7b2d78
commit
be6765447d
36 changed files with 88 additions and 105 deletions
|
@ -1317,7 +1317,7 @@ impl Node {
|
|||
}
|
||||
|
||||
pub(crate) fn is_display_none(&self) -> bool {
|
||||
self.style_data.borrow().as_ref().map_or(true, |data| {
|
||||
self.style_data.borrow().as_ref().is_none_or(|data| {
|
||||
data.element_data
|
||||
.borrow()
|
||||
.styles
|
||||
|
@ -2184,8 +2184,7 @@ impl Node {
|
|||
) {
|
||||
node.owner_doc().add_script_and_layout_blocker();
|
||||
debug_assert!(*node.owner_doc() == *parent.owner_doc());
|
||||
debug_assert!(child.map_or(true, |child| Some(parent) ==
|
||||
child.GetParentNode().as_deref()));
|
||||
debug_assert!(child.is_none_or(|child| Some(parent) == child.GetParentNode().as_deref()));
|
||||
|
||||
// Step 1.
|
||||
let count = if node.is::<DocumentFragment>() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue