From bf946b1832398bef09ae65dd68642bafa13410c4 Mon Sep 17 00:00:00 2001 From: Eguzki Astiz Lezaun Date: Fri, 22 Nov 2024 13:34:25 +0100 Subject: [PATCH] alexclippy comment addressed about unnecessary reference count cloning Signed-off-by: Eguzki Astiz Lezaun --- src/operation_dispatcher.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/operation_dispatcher.rs b/src/operation_dispatcher.rs index 784a7ff..156b08f 100644 --- a/src/operation_dispatcher.rs +++ b/src/operation_dispatcher.rs @@ -173,10 +173,7 @@ impl OperationDispatcher { for action in actions.iter() { operations.push(Rc::new(Operation::new( Rc::clone(action), - GrpcServiceHandler::new( - Rc::clone(&action.grpc_service()), - Rc::clone(&self.header_resolver), - ), + GrpcServiceHandler::new(action.grpc_service(), Rc::clone(&self.header_resolver)), ))); } self.push_operations(operations);