From 4e8e705f618acdf120dcda733b8de4fe843eadf1 Mon Sep 17 00:00:00 2001 From: Alexis Asseman Date: Thu, 20 Jul 2023 10:58:45 -0700 Subject: [PATCH] refactor: remove unnecessary clone on &str Also fixes clippy::clone_double_ref Signed-off-by: Alexis Asseman --- service/src/query_processor.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/query_processor.rs b/service/src/query_processor.rs index 9037d16..4a5ed9f 100644 --- a/service/src/query_processor.rs +++ b/service/src/query_processor.rs @@ -125,7 +125,7 @@ pub struct QueryProcessor { impl QueryProcessor { pub fn new(graph_node_endpoint: &str, network_subgraph_endpoint: &str) -> QueryProcessor { - let graph_node = GraphNodeInstance::new(graph_node_endpoint.clone()); + let graph_node = GraphNodeInstance::new(graph_node_endpoint); QueryProcessor { client: Client::new(),