@@ -82,15 +82,21 @@ pub enum RawVc {
82
82
impl Debug for RawVc {
83
83
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
84
84
match self {
85
- RawVc :: TaskOutput ( task_id) => write ! ( f, "RawVc::TaskOutput({})" , * * task_id) ,
86
- RawVc :: TaskCell ( task_id, cell_id) => {
87
- write ! ( f, "RawVc::TaskCell({}, {})" , * * task_id, cell_id)
88
- }
89
- RawVc :: LocalOutput ( execution_id, local_task_id, persistence) => write ! (
90
- f,
91
- "RawVc::LocalOutput({}, {}, {:?})" ,
92
- * * execution_id, * * local_task_id, persistence
93
- ) ,
85
+ RawVc :: TaskOutput ( task_id) => f
86
+ . debug_tuple ( "RawVc::TaskOutput" )
87
+ . field ( & * * task_id)
88
+ . finish ( ) ,
89
+ RawVc :: TaskCell ( task_id, cell_id) => f
90
+ . debug_tuple ( "RawVc::TaskCell" )
91
+ . field ( & * * task_id)
92
+ . field ( & cell_id. to_string ( ) )
93
+ . finish ( ) ,
94
+ RawVc :: LocalOutput ( execution_id, local_task_id, task_persistence) => f
95
+ . debug_tuple ( "RawVc::LocalOutput" )
96
+ . field ( & * * execution_id)
97
+ . field ( & * * local_task_id)
98
+ . field ( task_persistence)
99
+ . finish ( ) ,
94
100
}
95
101
}
96
102
}
0 commit comments