Formatting changes from cargo fmt
This commit is contained in:
parent
82e63284ce
commit
5f34f49d17
|
@ -1065,7 +1065,10 @@ fn test_bridge_replace() {
|
|||
// Case zero: bridge to be replaced is not in the bridgetable
|
||||
let random_bridgeline = BridgeLine::random();
|
||||
assert!(
|
||||
!th.ba.bridge_table.reachable.contains_key(&random_bridgeline),
|
||||
!th.ba
|
||||
.bridge_table
|
||||
.reachable
|
||||
.contains_key(&random_bridgeline),
|
||||
"Random bridgeline happens to be in the bridge_table (and should not be)"
|
||||
);
|
||||
assert!(
|
||||
|
|
|
@ -831,8 +831,9 @@ pub fn get_next_unlock(constants_str: String, lox_cred_str: String) -> Result<St
|
|||
days_to_next_level + constants.level_interval[trust_level as usize + 1];
|
||||
invitations_at_next_level = constants.level_invitations[trust_level as usize + 1];
|
||||
}
|
||||
let days_to_blockage_migration_unlock =
|
||||
match trust_level < constants.min_blockage_migration_trust_level {
|
||||
let days_to_blockage_migration_unlock = match trust_level
|
||||
< constants.min_blockage_migration_trust_level
|
||||
{
|
||||
// If the credential is greater than the minimum level that enables
|
||||
// migrating after a blockage, the time to unlock is 0, otherwise we
|
||||
// add the time to upgrade until that level
|
||||
|
@ -853,7 +854,9 @@ pub fn get_next_unlock(constants_str: String, lox_cred_str: String) -> Result<St
|
|||
let day_of_invite_unlock =
|
||||
(scalar_u32(&lox_cred.lox_credential.level_since).unwrap() + days_to_invite_inc) as i32;
|
||||
let invite_unlock_date = JulianDay::new(day_of_invite_unlock).to_date();
|
||||
let day_of_blockage_migration_unlock = (scalar_u32(&lox_cred.lox_credential.level_since).unwrap() + days_to_blockage_migration_unlock) as i32;
|
||||
let day_of_blockage_migration_unlock = (scalar_u32(&lox_cred.lox_credential.level_since)
|
||||
.unwrap()
|
||||
+ days_to_blockage_migration_unlock) as i32;
|
||||
let blockage_migration_unlock_date =
|
||||
JulianDay::new(day_of_blockage_migration_unlock as i32).to_date();
|
||||
let next_unlock: lox_utils::LoxNextUnlock = lox_utils::LoxNextUnlock {
|
||||
|
|
Loading…
Reference in New Issue