mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy fixes regarding clone_from (#32482)
This commit is contained in:
parent
fd472ebd0e
commit
0a641816bf
12 changed files with 35 additions and 19 deletions
|
@ -86,7 +86,10 @@ impl<'a> AutoWorkerReset<'a> {
|
|||
|
||||
impl<'a> Drop for AutoWorkerReset<'a> {
|
||||
fn drop(&mut self) {
|
||||
*self.workerscope.worker.borrow_mut() = self.old_worker.clone();
|
||||
self.workerscope
|
||||
.worker
|
||||
.borrow_mut()
|
||||
.clone_from(&self.old_worker)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue