Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jkilpatr committed Nov 23, 2023
1 parent 2b89d43 commit 0065bc3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 7 additions & 1 deletion integration_tests/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ use rita_common::{
debt_keeper::GetDebtsResult,
payment_validator::{ALTHEA_CHAIN_PREFIX, ALTHEA_CONTACT_TIMEOUT},
};
use settings::{client::RitaClientSettings, exit::{RitaExitSettingsStruct, ExitNetworkSettings}, payment::PaymentSettings, localization::LocalizationSettings, network::NetworkSettings};
use settings::{
client::RitaClientSettings,
exit::{ExitNetworkSettings, RitaExitSettingsStruct},
localization::LocalizationSettings,
network::NetworkSettings,
payment::PaymentSettings,
};
use std::{
collections::{HashMap, HashSet},
net::Ipv6Addr,
Expand Down
2 changes: 1 addition & 1 deletion rita_client_registration/src/client_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ pub fn parse_identity_array_abi(bytes: Vec<u8>) -> Result<Vec<Identity>, Web3Err

// An empty list, the first word has a type identifier, the second is empty
if byte_chunks.len() == 2 {
return Ok(vec![])
return Ok(vec![]);
}

// A valid array with 1 entry has 5 lines. An empty list has 2 lines
Expand Down
8 changes: 5 additions & 3 deletions settings/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,11 @@ impl Default for ExitClientSettings {
impl RitaClientSettings {
pub fn new(file_name: &str) -> Result<Self, SettingsError> {
if !Path::new(file_name).exists() {
error!("Failed to find settings file at location {}, generating", file_name);
return Ok(RitaClientSettings::default())
error!(
"Failed to find settings file at location {}, generating",
file_name
);
return Ok(RitaClientSettings::default());
}

let config_toml = std::fs::read_to_string(file_name)?;
Expand Down Expand Up @@ -220,4 +223,3 @@ impl RitaClientSettings {
))
}
}

0 comments on commit 0065bc3

Please sign in to comment.