From 45bd37c0edb087a5551e17d26d12ef746a1ddeb7 Mon Sep 17 00:00:00 2001 From: "Pengfei(Andy) Zhang" Date: Fri, 27 Sep 2024 13:13:24 -0400 Subject: [PATCH] fix: cleanup unsed Clone and Copy trait. --- crates/rpc/src/rpc_metrics.rs | 1 - crates/task/src/grpc/grpc_metrics.rs | 1 - crates/task/src/metrics.rs | 2 -- 3 files changed, 4 deletions(-) diff --git a/crates/rpc/src/rpc_metrics.rs b/crates/rpc/src/rpc_metrics.rs index d9b6b6daf..a4015a606 100644 --- a/crates/rpc/src/rpc_metrics.rs +++ b/crates/rpc/src/rpc_metrics.rs @@ -14,7 +14,6 @@ use jsonrpsee::types::Request; use rundler_types::task::traits::RequestExtractor; -#[derive(Copy, Clone)] pub struct RPCMethodExtractor; impl RequestExtractor> for RPCMethodExtractor { diff --git a/crates/task/src/grpc/grpc_metrics.rs b/crates/task/src/grpc/grpc_metrics.rs index de25d54a6..f166384f4 100644 --- a/crates/task/src/grpc/grpc_metrics.rs +++ b/crates/task/src/grpc/grpc_metrics.rs @@ -15,7 +15,6 @@ use rundler_types::task::traits::RequestExtractor; use tonic::codegen::http; /// http request method extractor. -#[derive(Copy, Clone)] pub struct HttpMethodExtractor; impl RequestExtractor> for HttpMethodExtractor { diff --git a/crates/task/src/metrics.rs b/crates/task/src/metrics.rs index 1575a84bd..181b82bc7 100644 --- a/crates/task/src/metrics.rs +++ b/crates/task/src/metrics.rs @@ -158,8 +158,6 @@ where .boxed() } } - -#[derive(Clone)] struct MethodMetrics {} impl MethodMetrics {