Put the name of runnables in Debug for CommonScriptMsg

This commit is contained in:
Anthony Ramine 2017-09-16 01:25:51 +02:00
parent 69275162b0
commit 7ca52152a6
2 changed files with 10 additions and 1 deletions

View file

@ -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()
},
}
}
}