From b207c1207a4ba7a112a38031fef542bb63935b1c Mon Sep 17 00:00:00 2001 From: dhruvja Date: Sat, 19 Oct 2024 01:33:06 +0530 Subject: [PATCH] fmt --- .../programs/solana-ibc/src/validation_context.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/solana/solana-ibc/programs/solana-ibc/src/validation_context.rs b/solana/solana-ibc/programs/solana-ibc/src/validation_context.rs index 879ae372..92b5f20f 100644 --- a/solana/solana-ibc/programs/solana-ibc/src/validation_context.rs +++ b/solana/solana-ibc/programs/solana-ibc/src/validation_context.rs @@ -287,9 +287,7 @@ impl ibc::ValidationContext for IbcStorage<'_, '_> { } } - fn get_client_validation_context(&self) -> &Self::V { - self - } + fn get_client_validation_context(&self) -> &Self::V { self } fn get_compatible_versions(&self) -> Vec { ibc::conn::get_compatible_versions() @@ -402,7 +400,7 @@ fn calculate_block_delay( if max_expected_time_per_block.is_zero() { return 0; } - let delay = delay_period_time.as_secs_f64() - / max_expected_time_per_block.as_secs_f64(); + let delay = delay_period_time.as_secs_f64() / + max_expected_time_per_block.as_secs_f64(); delay.ceil() as u64 }