mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Reintroduce Untraceable<T>.deref_mut() to make mem::replace() possible to Untracebale<T> field.
Some compile errors caused by the compiler's misreading comes back again :( We re-use `deref()`explicitly to hide these errors.
This commit is contained in:
parent
c51b8a07ac
commit
54d3a0b280
5 changed files with 14 additions and 8 deletions
|
@ -120,7 +120,7 @@ impl DedicatedWorkerGlobalScope {
|
|||
let target: JSRef<EventTarget> =
|
||||
EventTargetCast::from_ref(*global);
|
||||
loop {
|
||||
match global.receiver.recv_opt() {
|
||||
match global.receiver.deref().recv_opt() {
|
||||
Ok(DOMMessage(data, nbytes)) => {
|
||||
let mut message = UndefinedValue();
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue