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:
Tetsuharu OHZEKI 2014-09-20 00:04:02 +09:00
parent c51b8a07ac
commit 54d3a0b280
5 changed files with 14 additions and 8 deletions

View file

@ -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 {