Skip to content

Commit 79a6fdd

Browse files
committed
Update rustls-platform-verifier dependency to version 0.5.1
* Update `Cargo.toml` to use `rustls-platform-verifier` version `0.5.1` * Update `src/main.rs` to use `rustls-platform-verifier` version `0.5.1` * Update `src/utils/ssh_deploy/dependencies.rs` to use `rustls-platform-verifier` version `0.5.1` * Update `src/utils/ssh_deploy/deploy.rs` to use `rustls-platform-verifier` version `0.5.1` * Update `src/utils/ssh_deploy/mod.rs` to use `rustls-platform-verifier` version `0.5.1` * Update `src/utils/ssh_deploy/validators.rs` to use `rustls-platform-verifier` version `0.5.1`
1 parent 1c381db commit 79a6fdd

File tree

6 files changed

+17
-19
lines changed

6 files changed

+17
-19
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ url = "2.5.4"
3434
serde_json = "1.0.140"
3535
dirs = "6.0.0"
3636
webpki = "0.22.4"
37-
rustls-platform-verifier = "0.4"
37+
rustls-platform-verifier = "0.5.1"
3838

3939
[dev-dependencies]
4040
assert_cmd = "2.0.16"

src/main.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

src/utils/ssh_deploy/dependencies.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//! Dependency installation utilities for SSH deployment
2-
31
use crate::utils::ssh_deploy::{
42
client::SshClient, errors::DeploymentError, types::DeploymentConfig,
53
};

src/utils/ssh_deploy/deploy.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
//! Main deployment functions for SSH deployment
2-
31
use {
42
crate::utils::ssh_deploy::{
53
client::SshClient,

src/utils/ssh_deploy/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::all)]
12
//! SSH deployment utilities
23
//! Provides functionality for deploying SVM nodes via SSH
34

src/utils/ssh_deploy/validators.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::all)]
12
//! System validation utilities for SSH deployment
23
34
use {

0 commit comments

Comments
 (0)