mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
cargo: Bump rustc to 1.89 (#36818)
Update Rustc to 1.89. Reviewable by commit. Leftover work: - #37330 - #38777 --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
8587536755
commit
3225d19907
126 changed files with 408 additions and 610 deletions
|
@ -76,8 +76,7 @@ impl CSSStyleOwner {
|
|||
let document = el.owner_document();
|
||||
let shared_lock = document.style_shared_lock();
|
||||
let mut attr = el.style_attribute().borrow_mut().take();
|
||||
let result = if attr.is_some() {
|
||||
let lock = attr.as_ref().unwrap();
|
||||
let result = if let Some(lock) = attr.as_ref() {
|
||||
let mut guard = shared_lock.write();
|
||||
let pdb = lock.write_with(&mut guard);
|
||||
f(pdb, &mut changed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue