Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Dec 18, 2024
1 parent 9973c25 commit 49ff29c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/crates/soroban-test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl TestEnv {
}

pub fn with_rpc_url(rpc_url: &str) -> TestEnv {
let mut env: TestEnv = Default::default();
let mut env = TestEnv::default();
env.network.rpc_url = rpc_url.to_string();
if let Ok(network_passphrase) = std::env::var("STELLAR_NETWORK_PASSPHRASE") {
env.network.network_passphrase = network_passphrase;
Expand All @@ -114,7 +114,7 @@ impl TestEnv {
}

pub fn with_rpc_provider(rpc_url: &str, rpc_headers: Vec<(String, String)>) -> TestEnv {
let mut env: TestEnv = Default::default();
let mut env = TestEnv::default();
env.network.rpc_url = rpc_url.to_string();
env.network.rpc_headers = rpc_headers;
if let Ok(network_passphrase) = std::env::var("STELLAR_NETWORK_PASSPHRASE") {
Expand Down Expand Up @@ -151,7 +151,7 @@ impl TestEnv {
.env("XDG_DATA_HOME", self.temp_dir.join("data").as_os_str())
.current_dir(&self.temp_dir);

if &self.network.rpc_headers.len() > &0 {
if !self.network.rpc_headers.is_empty() {
cmd.env(
"STELLAR_RPC_HEADERS",
format!(
Expand Down

0 comments on commit 49ff29c

Please sign in to comment.