@@ -38,7 +38,6 @@ pub struct TaskMetricsCollector {
3838}
3939
4040/// MetricsCollectorResult is the result of collecting metrics from a task.
41- #[ allow( dead_code) ]
4241pub struct MetricsCollectorResult {
4342 // metrics is a collection of metrics for a task ordered using a pre-order traversal of the task's plan.
4443 pub ( super ) task_metrics : Vec < MetricsSet > ,
@@ -108,7 +107,6 @@ impl TreeNodeRewriter for TaskMetricsCollector {
108107}
109108
110109impl TaskMetricsCollector {
111- #[ allow( dead_code) ]
112110 pub fn new ( ) -> Self {
113111 Self {
114112 task_metrics : Vec :: new ( ) ,
@@ -120,7 +118,6 @@ impl TaskMetricsCollector {
120118 /// Returns
121119 /// - a vec representing the metrics for the current task (ordered using a pre-order traversal)
122120 /// - a map representing the metrics for some subset of child tasks collected from NetworkShuffleExec leaves
123- #[ allow( dead_code) ]
124121 pub fn collect (
125122 mut self ,
126123 plan : Arc < dyn ExecutionPlan > ,
@@ -305,10 +302,10 @@ pub fn collect_and_create_metrics_flight_data(
305302 df_metrics_set_to_proto ( metrics)
306303 . map_err ( |err| FlightError :: ProtocolError ( err. to_string ( ) ) )
307304 } )
308- . collect :: < Result < Vec < MetricsSetProto > , FlightError > > ( ) ?;
305+ . collect :: < Result < Vec < _ > , _ > > ( ) ?;
309306 result
310307 . child_task_metrics
311- . insert ( stage_key. clone ( ) , proto_task_metrics. clone ( ) ) ;
308+ . insert ( stage_key, proto_task_metrics) ;
312309
313310 // Serialize the metrics for all tasks.
314311 let mut task_metrics_set = vec ! [ ] ;
0 commit comments