Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-mysten committed Dec 6, 2024
1 parent a50db02 commit 424b5de
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions crates/sui/src/sui_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,15 +694,13 @@ async fn start(
if committee_size.is_some() {
eprintln!(
"{}",
format!(
"[warning] The committee-size arg wil be ignored as a network \
"[warning] The committee-size arg wil be ignored as a network \
configuration already exists. To change the committee-size, you'll \
have to adjust the network configuration file or regenerate a genesis \
with the desired committee size. See `sui genesis --help` for more \
information."
)
.yellow()
.bold()
.yellow()
.bold()
);
}
(config, sui_config_dir()?)
Expand All @@ -712,15 +710,13 @@ async fn start(
if committee_size.is_some() {
eprintln!(
"{}",
format!(
"[warning] The committee-size arg wil be ignored as a network \
"[warning] The committee-size arg wil be ignored as a network \
configuration already exists. To change the committee-size, you'll \
have to adjust the network configuration file or regenerate a genesis \
with the desired committee size. See `sui genesis --help` for more \
information."
)
.yellow()
.bold()
.yellow()
.bold()
);
}
(config.join(SUI_NETWORK_CONFIG), config)
Expand Down Expand Up @@ -754,21 +750,17 @@ async fn start(
sui_config.display(),
)
})?;
} else {
if committee_size.is_some() {
eprintln!(
"{}",
format!(
"[warning] The committee-size arg wil be ignored as a network \
} else if committee_size.is_some() {
eprintln!(
"{}",
"[warning] The committee-size arg wil be ignored as a network \
configuration already exists. To change the committee-size, you'll \
have to adjust the network configuration file or regenerate a genesis \
with the desired committee size. See `sui genesis --help` for more \
information."
)
.yellow()
.bold()
);
}
);
}

(network_config, sui_config)
Expand Down

0 comments on commit 424b5de

Please sign in to comment.