Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added clippy fixes to a test file #576

Merged
merged 1 commit into from
Feb 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sui/src/unit_tests/cli_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,9 +448,9 @@ async fn start_network(
let network_conf_path = &working_dir.join("network.conf");
let genesis_conf_path = &working_dir.join("genesis.conf");

let mut config = NetworkConfig::read_or_create(&network_conf_path)?;
let mut config = NetworkConfig::read_or_create(network_conf_path)?;
let mut port_allocator = PortAllocator::new(starting_port);
let mut genesis_config = genesis.unwrap_or(GenesisConfig::default_genesis(&genesis_conf_path)?);
let mut genesis_config = genesis.unwrap_or(GenesisConfig::default_genesis(genesis_conf_path)?);
let authorities = genesis_config
.authorities
.iter()
Expand All @@ -471,7 +471,7 @@ async fn start_network(
.execute(&mut config)
.await?;

let mut config = NetworkConfig::read(&network_conf_path)?;
let mut config = NetworkConfig::read(network_conf_path)?;

// Start network
let network = task::spawn(async move { SuiCommand::Start.execute(&mut config).await });
Expand Down