@@ -195,7 +195,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
195195 // First get SVM info to verify it exists and can be installed
196196 match svm_info:: get_svm_info ( & rpc_client, svm_name, config. commitment_config ) {
197197 Ok ( info) => {
198- if !info. can_install_validator && !info. can_install_rpc {
198+ if ( !info. can_install_validator && !info. can_install_rpc ) {
199199 eprintln ! ( "SVM '{}' cannot be installed" , svm_name) ;
200200 exit ( 1 ) ;
201201 }
@@ -247,7 +247,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
247247 config. verbose ,
248248 ) {
249249 Ok ( node_list) => {
250- if json_output {
250+ if ( json_output) {
251251 println ! ( "{}" , serde_json:: to_string_pretty( & node_list) . unwrap( ) ) ;
252252 } else {
253253 nodes:: display_node_list ( & node_list, config. verbose ) ;
@@ -280,7 +280,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
280280
281281 match nodes:: get_node_status ( node_id) {
282282 Ok ( status) => {
283- if json_output {
283+ if ( json_output) {
284284 println ! ( "{}" , serde_json:: to_string_pretty( & status) . unwrap( ) ) ;
285285 } else {
286286 nodes:: display_node_status ( node_id, & status, config. verbose ) ;
@@ -299,7 +299,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
299299
300300 match nodes:: get_node_info ( & rpc_client, node_id, config. commitment_config ) {
301301 Ok ( info) => {
302- if json_output {
302+ if ( json_output) {
303303 println ! ( "{}" , serde_json:: to_string_pretty( & info) . unwrap( ) ) ;
304304 } else {
305305 nodes:: display_node_info ( & info, config. verbose ) ;
@@ -345,7 +345,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
345345
346346 match nodes:: get_node_logs ( node_id, lines, follow) {
347347 Ok ( _) => {
348- if follow {
348+ if ( follow) {
349349 // For follow mode, the function won't return until user interrupts
350350 println ! ( "Log streaming ended" ) ;
351351 }
@@ -394,7 +394,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
394394 }
395395 ( "examples" , Some ( examples_matches) ) => {
396396 // Handle the examples command
397- if examples_matches. is_present ( "list_categories" ) {
397+ if ( examples_matches. is_present ( "list_categories" ) ) {
398398 // List all available example categories
399399 println ! ( "Available example categories:" ) ;
400400 println ! ( " basic - Basic Commands" ) ;
@@ -449,8 +449,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
449449 } ;
450450
451451 // Create disk configuration if both disk params are provided
452- let disk_config = if validator_matches. is_present ( "ledger-disk" )
453- && validator_matches. is_present ( "accounts-disk" )
452+ let disk_config = if ( validator_matches. is_present ( "ledger-disk" )
453+ && validator_matches. is_present ( "accounts-disk" ) )
454454 {
455455 Some ( ssh_deploy:: DiskConfig {
456456 ledger_disk : validator_matches
@@ -489,7 +489,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
489489 if let Some ( client) = & deploy_config. client_type {
490490 println ! ( "Client type: {}" , client) ;
491491 }
492- if deploy_config. hot_swap_enabled {
492+ if ( deploy_config. hot_swap_enabled ) {
493493 println ! ( "Hot-swap capability: Enabled" ) ;
494494 }
495495 if let Some ( disks) = & deploy_config. disk_config {
@@ -540,8 +540,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
540540 } ;
541541
542542 // Create disk configuration if both disk params are provided
543- let disk_config = if rpc_matches. is_present ( "ledger-disk" )
544- && rpc_matches. is_present ( "accounts-disk" )
543+ let disk_config = if ( rpc_matches. is_present ( "ledger-disk" )
544+ && rpc_matches. is_present ( "accounts-disk" ) )
545545 {
546546 Some ( ssh_deploy:: DiskConfig {
547547 ledger_disk : rpc_matches. value_of ( "ledger-disk" ) . unwrap ( ) . to_string ( ) ,
@@ -556,7 +556,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
556556
557557 // Create additional params for RPC-specific options
558558 let mut additional_params = std:: collections:: HashMap :: new ( ) ;
559- if enable_history {
559+ if ( enable_history) {
560560 additional_params. insert ( "enable_history" . to_string ( ) , "true" . to_string ( ) ) ;
561561 }
562562
@@ -583,7 +583,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
583583 if let Some ( client) = & deploy_config. client_type {
584584 println ! ( "Client type: {}" , client) ;
585585 }
586- if enable_history {
586+ if ( enable_history) {
587587 println ! ( "Transaction history: Enabled" ) ;
588588 }
589589 if let Some ( disks) = & deploy_config. disk_config {
@@ -755,7 +755,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
755755 . split ( ',' )
756756 . map ( |s| s. trim ( ) . to_string ( ) )
757757 . collect :: < Vec < _ > > ( ) ;
758- if svm_types. is_empty ( ) {
758+ if ( svm_types. is_empty ( ) ) {
759759 eprintln ! ( "No SVMs specified" ) ;
760760 exit ( 1 ) ;
761761 }
0 commit comments