Skip to content

Commit

Permalink
alexclippy comment addressed about unnecessary reference count cloning
Browse files Browse the repository at this point in the history
Signed-off-by: Eguzki Astiz Lezaun <[email protected]>
  • Loading branch information
eguzki committed Nov 22, 2024
1 parent 44e5837 commit bf946b1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/operation_dispatcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bf946b1

Please sign in to comment.