mirror of
https://github.com/servo/servo.git
synced 2025-07-21 22:33:41 +01:00
clippy: Fix let_and_return warnings (#31964)
This commit is contained in:
parent
0da2508e4d
commit
c7b73e1ef4
8 changed files with 17 additions and 31 deletions
|
@ -73,8 +73,7 @@ impl CSSStyleOwner {
|
|||
let lock = attr.as_ref().unwrap();
|
||||
let mut guard = shared_lock.write();
|
||||
let pdb = lock.write_with(&mut guard);
|
||||
let result = f(pdb, &mut changed);
|
||||
result
|
||||
f(pdb, &mut changed)
|
||||
} else {
|
||||
let mut pdb = PropertyDeclarationBlock::new();
|
||||
let result = f(&mut pdb, &mut changed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue