From cc44a3b0641d94908b2b2e01bec440f64f89f8be Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Wed, 24 Sep 2014 03:01:03 +0530 Subject: Use JSTraceable everywhere --- components/script/dom/bindings/callback.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'components/script/dom/bindings/callback.rs') diff --git a/components/script/dom/bindings/callback.rs b/components/script/dom/bindings/callback.rs index 5c1f4c771cb..4f9c04f6e42 100644 --- a/components/script/dom/bindings/callback.rs +++ b/components/script/dom/bindings/callback.rs @@ -13,8 +13,6 @@ use js::jsval::{JSVal, UndefinedValue}; use std::ptr; -use serialize::{Encodable, Encoder}; - /// The exception handling used for a call. pub enum ExceptionHandling { /// Report any exception and don't throw it to the caller code. @@ -28,7 +26,8 @@ pub enum ExceptionHandling { } /// A common base class for representing IDL callback function types. -#[deriving(Clone,PartialEq,Encodable)] +#[deriving(Clone,PartialEq)] +#[jstraceable] pub struct CallbackFunction { object: CallbackObject } @@ -44,7 +43,8 @@ impl CallbackFunction { } /// A common base class for representing IDL callback interface types. -#[deriving(Clone,PartialEq,Encodable)] +#[deriving(Clone,PartialEq)] +#[jstraceable] pub struct CallbackInterface { object: CallbackObject } @@ -52,7 +52,8 @@ pub struct CallbackInterface { /// A common base class for representing IDL callback function and /// callback interface types. #[allow(raw_pointer_deriving)] -#[deriving(Clone,PartialEq,Encodable)] +#[deriving(Clone,PartialEq)] +#[jstraceable] struct CallbackObject { /// The underlying `JSObject`. callback: Traceable<*mut JSObject>, -- cgit v1.2.3