diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-16 01:25:51 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2017-09-16 03:47:17 +0200 |
commit | 7ca52152a63615b38cecd9e149032bba712d3bc5 (patch) | |
tree | d471258d6ad4c4eae777278790bc77620d3a741e /components/script/script_runtime.rs | |
parent | 69275162b03d663394cd7bfe564890187e00de52 (diff) | |
download | servo-7ca52152a63615b38cecd9e149032bba712d3bc5.tar.gz servo-7ca52152a63615b38cecd9e149032bba712d3bc5.zip |
Put the name of runnables in Debug for CommonScriptMsg
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r-- | components/script/script_runtime.rs | 4 |
1 files changed, 3 insertions, 1 deletions
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() + }, } } } |