aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorAlan Jeffrey <ajeffrey@mozilla.com>2017-06-13 10:46:59 -0500
committerAlan Jeffrey <ajeffrey@mozilla.com>2017-06-13 10:46:59 -0500
commita47e94c8f6b37de9845c824c6a8a488728a1d0c1 (patch)
tree22b49d54306e8a3b72042ad666964120fbbc34b2 /components/script_traits/lib.rs
parent07f6e114850896eae2fd206351808fb31cceaaf0 (diff)
downloadservo-a47e94c8f6b37de9845c824c6a8a488728a1d0c1.tar.gz
servo-a47e94c8f6b37de9845c824c6a8a488728a1d0c1.zip
Added Debug implementations.
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index c036eee28d9..20433e4f45c 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -451,11 +451,11 @@ pub enum TimerSchedulerMsg {
/// Notifies the script thread to fire due timers.
/// `TimerSource` must be `FromWindow` when dispatched to `ScriptThread` and
/// must be `FromWorker` when dispatched to a `DedicatedGlobalWorkerScope`
-#[derive(Deserialize, Serialize)]
+#[derive(Debug, Deserialize, Serialize)]
pub struct TimerEvent(pub TimerSource, pub TimerEventId);
/// Describes the thread that requested the TimerEvent.
-#[derive(Copy, Clone, HeapSizeOf, Deserialize, Serialize)]
+#[derive(Copy, Clone, Debug, HeapSizeOf, Deserialize, Serialize)]
pub enum TimerSource {
/// The event was requested from a window (ScriptThread).
FromWindow(PipelineId),