@@ -522,8 +522,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
522522 } ;
523523
524524 // Create disk configuration if both disk params are provided
525- let disk_config = if rpc_matches
526- . is_present ( "ledger-disk" && rpc_matches. is_present ( "accounts-disk" ) )
525+ let disk_config = if rpc_matches. is_present ( "ledger-disk" )
526+ && rpc_matches. is_present ( "accounts-disk" )
527527 {
528528 Some ( ssh_deploy:: DiskConfig {
529529 ledger_disk : rpc_matches. value_of ( "ledger-disk" ) . unwrap ( ) . to_string ( ) ,
@@ -644,7 +644,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
644644
645645 println ! ( "Sonic RPC node deployed successfully!" ) ;
646646 }
647- "solana" => {
647+ ( "solana" , Some ( rpc_sub_matches ) ) => {
648648 // Use the enhanced Solana deployment via rpc subcommand
649649 let connection_str = rpc_sub_matches
650650 . get_one :: < String > ( "connection" )
@@ -768,10 +768,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
768768 exit ( 1 ) ;
769769 }
770770 }
771- "new_feature_command" => {
771+ ( "new_feature_command" , _ ) => {
772772 println ! ( "Expected output for new feature" ) ;
773773 }
774- cmd => {
774+ ( cmd, _ ) => {
775775 eprintln ! ( "Unknown command: {}" , cmd) ;
776776 exit ( 1 ) ;
777777 }
@@ -808,4 +808,4 @@ mod test {
808808 // Assert that the deserialized data matches the original
809809 assert_eq ! ( faux, in_faux) ;
810810 }
811- }
811+ }
0 commit comments