From 63fe215bf89c9d6bad632cd1f3dfabf7044dfead Mon Sep 17 00:00:00 2001 From: Daniel Chmielewski Date: Sun, 24 Mar 2024 10:59:37 +0000 Subject: [PATCH] Fix formatting after additional changes --- bridges/modules/messages/src/lib.rs | 2 +- substrate/primitives/state-machine/src/lib.rs | 5 ++--- .../state-machine/src/overlayed_changes/offchain.rs | 4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/bridges/modules/messages/src/lib.rs b/bridges/modules/messages/src/lib.rs index a57d71861ffcb..bc00db9eba5ba 100644 --- a/bridges/modules/messages/src/lib.rs +++ b/bridges/modules/messages/src/lib.rs @@ -90,7 +90,7 @@ pub const LOG_TARGET: &str = "runtime::bridge-messages"; #[frame_support::pallet] pub mod pallet { use super::*; - use bp_messages::{ReceptionResult, ReceivedMessages}; + use bp_messages::{ReceivedMessages, ReceptionResult}; use bp_runtime::RangeInclusiveExt; use frame_support::pallet_prelude::*; use frame_system::pallet_prelude::*; diff --git a/substrate/primitives/state-machine/src/lib.rs b/substrate/primitives/state-machine/src/lib.rs index 19a3afc5222c4..40e0e7d78d78d 100644 --- a/substrate/primitives/state-machine/src/lib.rs +++ b/substrate/primitives/state-machine/src/lib.rs @@ -131,9 +131,8 @@ pub use crate::{ error::{Error, ExecutionError}, ext::Ext, overlayed_changes::{ - ChildStorageCollection, IndexOperation, OffchainChangesCollection, - OffchainOverlaidChanges, OverlaidChanges, StorageChanges, StorageCollection, StorageKey, - StorageValue, + ChildStorageCollection, IndexOperation, OffchainChangesCollection, OffchainOverlaidChanges, + OverlaidChanges, StorageChanges, StorageCollection, StorageKey, StorageValue, }, stats::{StateMachineStats, UsageInfo, UsageUnit}, trie_backend::{TrieBackend, TrieBackendBuilder}, diff --git a/substrate/primitives/state-machine/src/overlayed_changes/offchain.rs b/substrate/primitives/state-machine/src/overlayed_changes/offchain.rs index 3415ba6814d9c..3fc84a35d7d1b 100644 --- a/substrate/primitives/state-machine/src/overlayed_changes/offchain.rs +++ b/substrate/primitives/state-machine/src/overlayed_changes/offchain.rs @@ -79,9 +79,7 @@ impl OffchainOverlaidChanges { } /// Mutable reference to inner change set. - pub fn overlay_mut( - &mut self, - ) -> &mut OverlaidMap<(Vec, Vec), OffchainOverlaidChange> { + pub fn overlay_mut(&mut self) -> &mut OverlaidMap<(Vec, Vec), OffchainOverlaidChange> { &mut self.0 } }