mirror of
https://github.com/servo/servo.git
synced 2025-06-12 10:24:43 +00:00
Put the name of runnables in Debug for CommonScriptMsg
This commit is contained in:
parent
69275162b0
commit
7ca52152a6
2 changed files with 10 additions and 1 deletions
|
@ -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()
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue