From 7ca52152a63615b38cecd9e149032bba712d3bc5 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Sat, 16 Sep 2017 01:25:51 +0200 Subject: Put the name of runnables in Debug for CommonScriptMsg --- components/script/script_runtime.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components/script/script_runtime.rs') diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index 7236bc96ecc..d0473d2469c 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -50,7 +50,9 @@ impl fmt::Debug for CommonScriptMsg { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { CommonScriptMsg::CollectReports(_) => write!(f, "CollectReports(...)"), - CommonScriptMsg::RunnableMsg(category, _) => write!(f, "RunnableMsg({:?}, ...)", category), + CommonScriptMsg::RunnableMsg(ref category, ref runnable) => { + f.debug_tuple("RunnableMsg").field(category).field(runnable).finish() + }, } } } -- cgit v1.2.3