From f3bab06ed0773fee12ad99e59dbabee869484b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89lo=C3=AFs?= Date: Mon, 13 May 2024 16:29:39 +0200 Subject: [PATCH] rustfmt --- cumulus/client/parachain-inherent/src/mock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cumulus/client/parachain-inherent/src/mock.rs b/cumulus/client/parachain-inherent/src/mock.rs index 7d29d9ec2cf2..c8be24fd13ba 100644 --- a/cumulus/client/parachain-inherent/src/mock.rs +++ b/cumulus/client/parachain-inherent/src/mock.rs @@ -167,12 +167,12 @@ impl> InherentDataProvider // Use the "sproof" (spoof proof) builder to build valid mock state root and proof. let mut sproof_builder = RelayStateSproofBuilder { para_id: self.xcm_config.para_id, ..Default::default() }; - // Calculate the mocked relay block based on the current para block let relay_parent_number = self.relay_offset + self.relay_blocks_per_para_block * self.current_para_block; - sproof_builder.current_slot = (relay_parent_number as u64).into() / RELAY_CHAIN_SLOT_DURATION_MILLIS; + sproof_builder.current_slot = + (relay_parent_number as u64).into() / RELAY_CHAIN_SLOT_DURATION_MILLIS; // Process the downward messages and set up the correct head let mut downward_messages = Vec::new();