aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/bindings/trace.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-07-01 00:59:52 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-07-01 00:59:52 +0530
commit7cc8e2eb5753c17fcbd171f69685ff6c98d23f03 (patch)
treeab92d92129efd718f9fa02c41e37ad219be8fee3 /src/components/script/dom/bindings/trace.rs
parentf3b9c11f7a8d3a834bb2547639eb2261210a1695 (diff)
downloadservo-7cc8e2eb5753c17fcbd171f69685ff6c98d23f03.tar.gz
servo-7cc8e2eb5753c17fcbd171f69685ff6c98d23f03.zip
Remove deref_mut from Untraceable/Traceable (fixes #2736)
Diffstat (limited to 'src/components/script/dom/bindings/trace.rs')
-rw-r--r--src/components/script/dom/bindings/trace.rs12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/components/script/dom/bindings/trace.rs b/src/components/script/dom/bindings/trace.rs
index 1c3655bbde3..8cbf32e0cbd 100644
--- a/src/components/script/dom/bindings/trace.rs
+++ b/src/components/script/dom/bindings/trace.rs
@@ -104,12 +104,6 @@ impl<T> Deref<T> for Untraceable<T> {
}
}
-impl<T> DerefMut<T> for Untraceable<T> {
- fn deref_mut<'a>(&'a mut self) -> &'a mut T {
- &mut self.inner
- }
-}
-
/// Encapsulates a type that can be traced but is boxed in a type we don't control
/// (such as RefCell). Wrap a field in Traceable and implement the Encodable trait
/// for that new concrete type to achieve magic compiler-derived trace hooks.
@@ -135,12 +129,6 @@ impl<T> Deref<T> for Traceable<T> {
}
}
-impl<T> DerefMut<T> for Traceable<T> {
- fn deref_mut<'a>(&'a mut self) -> &'a mut T {
- &mut self.inner
- }
-}
-
impl<S: Encoder<E>, E, T: Encodable<S, E>> Encodable<S, E> for Traceable<RefCell<T>> {
fn encode(&self, s: &mut S) -> Result<(), E> {
self.borrow().encode(s)