Skip to content

Commit

Permalink
Clippy + fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
grarco committed Sep 12, 2023
1 parent 891a88c commit 1dd35cf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion apps/src/lib/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,6 @@ pub mod args {
use std::collections::HashMap;
use std::convert::TryFrom;
use std::env;
use std::net::SocketAddr;
use std::path::PathBuf;
use std::str::FromStr;

Expand Down
3 changes: 1 addition & 2 deletions apps/src/lib/client/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::collections::HashMap;
use std::env;
use std::fs::{self, File, OpenOptions};
use std::io::Write;
use std::net::SocketAddr;
use std::path::{Path, PathBuf};
use std::str::FromStr;

Expand Down Expand Up @@ -1050,7 +1049,7 @@ pub fn init_genesis_validator(
tendermint_node_key: Some(HexString(
pre_genesis.tendermint_node_key.ref_to().to_string(),
)),
net_address: Some(net_address.to_string()),
net_address: Some(net_address),
..Default::default()
},
)]),
Expand Down
3 changes: 1 addition & 2 deletions tests/src/e2e/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::collections::HashMap;
use std::ffi::OsStr;
use std::fmt::Display;
use std::fs::{File, OpenOptions};
use std::net::SocketAddr;
use std::path::{Path, PathBuf};
use std::process::Command;
use std::str::FromStr;
Expand Down Expand Up @@ -124,7 +123,7 @@ where
let other_validators = validator_0.clone();
let validator_0_target = validator_0.net_address.clone().unwrap();
let split: Vec<&str> = validator_0_target.split(':').collect();
let (mut net_target_0, net_address_port_0) =
let (net_target_0, net_address_port_0) =
(split[0], split[1].parse::<u16>().unwrap());
for ix in 0..num {
let mut validator = other_validators.clone();
Expand Down

0 comments on commit 1dd35cf

Please sign in to comment.