mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix needless borrow warnings (#31813)
This commit is contained in:
parent
694e86ecff
commit
3e63f8d6ee
42 changed files with 151 additions and 157 deletions
|
@ -73,7 +73,7 @@ impl CSSStyleOwner {
|
|||
let lock = attr.as_ref().unwrap();
|
||||
let mut guard = shared_lock.write();
|
||||
let mut pdb = lock.write_with(&mut guard);
|
||||
let result = f(&mut pdb, &mut changed);
|
||||
let result = f(pdb, &mut changed);
|
||||
result
|
||||
} else {
|
||||
let mut pdb = PropertyDeclarationBlock::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue