mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -38,7 +38,7 @@ impl WorkerLocation {
|
|||
|
||||
impl<'a> WorkerLocationMethods for JSRef<'a, WorkerLocation> {
|
||||
fn Href(&self) -> DOMString {
|
||||
self.url.serialize()
|
||||
self.url.deref().serialize()
|
||||
}
|
||||
|
||||
fn Search(&self) -> DOMString {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue