diff options
author | Manish Goregaokar <manishsmail@gmail.com> | 2014-09-24 03:01:03 +0530 |
---|---|---|
committer | Manish Goregaokar <manishsmail@gmail.com> | 2014-09-24 05:44:49 +0530 |
commit | cc44a3b0641d94908b2b2e01bec440f64f89f8be (patch) | |
tree | a4b70f846ee51abd5b413c6875ef1bc24449c8b9 /components/script/script_task.rs | |
parent | 85f79290a67afb25369a9a48ee9a389ee32fd20e (diff) | |
download | servo-cc44a3b0641d94908b2b2e01bec440f64f89f8be.tar.gz servo-cc44a3b0641d94908b2b2e01bec440f64f89f8be.zip |
Use JSTraceable everywhere
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 9aed829a633..33f7c8eb793 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -14,6 +14,7 @@ use dom::bindings::conversions::{FromJSValConvertible, Empty}; use dom::bindings::global::Window; use dom::bindings::js::{JS, JSRef, RootCollection, Temporary, OptionalSettable}; use dom::bindings::js::OptionalRootable; +use dom::bindings::trace::JSTraceable; use dom::bindings::utils::Reflectable; use dom::bindings::utils::{wrap_for_same_compartment, pre_wrap}; use dom::document::{Document, HTMLDocument, DocumentHelpers}; @@ -56,7 +57,7 @@ use servo_util::task::spawn_named_with_send_on_failure; use geom::point::Point2D; use js::jsapi::{JS_SetWrapObjectCallbacks, JS_SetGCZeal, JS_DEFAULT_ZEAL_FREQ, JS_GC}; -use js::jsapi::{JSContext, JSRuntime}; +use js::jsapi::{JSContext, JSRuntime, JSTracer}; use js::jsapi::{JS_SetGCParameter, JSGC_MAX_BYTES}; use js::rust::{Cx, RtUtils}; use js::rust::with_compartment; @@ -64,7 +65,6 @@ use js; use url::Url; use libc::size_t; -use serialize::{Encoder, Encodable}; use std::any::{Any, AnyRefExt}; use std::cell::RefCell; use std::comm::{channel, Sender, Receiver, Select}; @@ -106,11 +106,7 @@ pub enum ScriptMsg { #[deriving(Clone)] pub struct ScriptChan(pub Sender<ScriptMsg>); -impl<S: Encoder<E>, E> Encodable<S, E> for ScriptChan { - fn encode(&self, _s: &mut S) -> Result<(), E> { - Ok(()) - } -} +untraceable!(ScriptChan) impl ScriptChan { /// Creates a new script chan. |