diff --git a/integration_tests/src/utils.rs b/integration_tests/src/utils.rs index 1260e6bcf..014d769f8 100644 --- a/integration_tests/src/utils.rs +++ b/integration_tests/src/utils.rs @@ -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, diff --git a/rita_client_registration/src/client_db.rs b/rita_client_registration/src/client_db.rs index 07d1dc785..75a69b96b 100644 --- a/rita_client_registration/src/client_db.rs +++ b/rita_client_registration/src/client_db.rs @@ -370,7 +370,7 @@ pub fn parse_identity_array_abi(bytes: Vec) -> Result, 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 diff --git a/settings/src/client.rs b/settings/src/client.rs index 044735482..82fe84fd8 100644 --- a/settings/src/client.rs +++ b/settings/src/client.rs @@ -140,8 +140,11 @@ impl Default for ExitClientSettings { impl RitaClientSettings { pub fn new(file_name: &str) -> Result { 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)?; @@ -220,4 +223,3 @@ impl RitaClientSettings { )) } } -