mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: fix some warnings in components/script (#31865)
This commit is contained in:
parent
58f170c97a
commit
188f3caff1
10 changed files with 16 additions and 16 deletions
|
@ -181,7 +181,7 @@ impl BaseAudioContext {
|
|||
/// which were taken and moved to the in-flight queue.
|
||||
fn take_pending_resume_promises(&self, result: ErrorResult) {
|
||||
let pending_resume_promises =
|
||||
mem::replace(&mut *self.pending_resume_promises.borrow_mut(), vec![]);
|
||||
std::mem::take(&mut *self.pending_resume_promises.borrow_mut());
|
||||
self.in_flight_resume_promises_queue
|
||||
.borrow_mut()
|
||||
.push_back((pending_resume_promises.into(), result));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue