Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
refactor: remove unnecessary clone on &str
Browse files Browse the repository at this point in the history
Also fixes clippy::clone_double_ref

Signed-off-by: Alexis Asseman <[email protected]>
  • Loading branch information
aasseman committed Jul 20, 2023
1 parent 0dc4be8 commit 4e8e705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/query_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 4e8e705

Please sign in to comment.