aboutsummaryrefslogtreecommitdiffstats
path: root/components/canvas_traits/webgl_channel/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/canvas_traits/webgl_channel/mod.rs')
-rw-r--r--components/canvas_traits/webgl_channel/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/canvas_traits/webgl_channel/mod.rs b/components/canvas_traits/webgl_channel/mod.rs
index 1ac4ce15cb1..c7376501049 100644
--- a/components/canvas_traits/webgl_channel/mod.rs
+++ b/components/canvas_traits/webgl_channel/mod.rs
@@ -10,6 +10,7 @@ mod mpsc;
use ::webgl::WebGLMsg;
use serde::{Deserialize, Serialize};
use servo_config::opts;
+use std::fmt;
lazy_static! {
static ref IS_MULTIPROCESS: bool = {
@@ -23,6 +24,12 @@ pub enum WebGLSender<T: Serialize> {
Mpsc(mpsc::WebGLSender<T>),
}
+impl<T: Serialize> fmt::Debug for WebGLSender<T> {
+ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
+ write!(f, "WebGLSender(..)")
+ }
+}
+
impl<T: Serialize> WebGLSender<T> {
#[inline]
pub fn send(&self, msg: T) -> WebGLSendResult {