Skip to content

Commit d3da847

Browse files
committed
Fix url construction again
1 parent 49e6e24 commit d3da847

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

crates/client/src/client.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,7 @@ impl FuelClient {
340340
rpc_url: R,
341341
) -> anyhow::Result<Self> {
342342
let mut client = Self::new(graph_ql_url)?;
343-
let inner_rpc_url = <R as AsRef<str>>::as_ref(&rpc_url);
344-
let mut raw_rpc_url = format!("http://{}", inner_rpc_url);
343+
let mut raw_rpc_url = <R as AsRef<str>>::as_ref(&rpc_url).to_string();
345344
if !raw_rpc_url.starts_with("http") {
346345
raw_rpc_url = format!("http://{raw_rpc_url}");
347346
}

0 commit comments

Comments
 (0)