From 424b5de6f89293237507951169d12ff82a1f0ea5 Mon Sep 17 00:00:00 2001 From: stefan-mysten <135084671+stefan-mysten@users.noreply.github.com> Date: Fri, 6 Dec 2024 12:01:45 -0800 Subject: [PATCH] Fix clippy --- crates/sui/src/sui_commands.rs | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/crates/sui/src/sui_commands.rs b/crates/sui/src/sui_commands.rs index a6ac2363ee16d..2b5920f99f89b 100644 --- a/crates/sui/src/sui_commands.rs +++ b/crates/sui/src/sui_commands.rs @@ -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()?) @@ -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) @@ -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)