Skip to content

Commit

Permalink
fix: cleanup unsed Clone and Copy trait.
Browse files Browse the repository at this point in the history
  • Loading branch information
andysim3d committed Sep 27, 2024
1 parent 57bd376 commit 45bd37c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion crates/rpc/src/rpc_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
use jsonrpsee::types::Request;
use rundler_types::task::traits::RequestExtractor;

#[derive(Copy, Clone)]
pub struct RPCMethodExtractor;

impl RequestExtractor<Request<'static>> for RPCMethodExtractor {
Expand Down
1 change: 0 additions & 1 deletion crates/task/src/grpc/grpc_metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Body> RequestExtractor<http::Request<Body>> for HttpMethodExtractor {
Expand Down
2 changes: 0 additions & 2 deletions crates/task/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ where
.boxed()
}
}

#[derive(Clone)]
struct MethodMetrics {}

impl MethodMetrics {
Expand Down

0 comments on commit 45bd37c

Please sign in to comment.