From 73b9f8e47b176876412928d1267c03f23272a334 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Lachowski?= Date: Fri, 19 Apr 2024 17:34:47 +0200 Subject: [PATCH] cargo fmt --- mock/src/dataio.rs | 1 - types/src/dataio.rs | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mock/src/dataio.rs b/mock/src/dataio.rs index 297cc309..b06f0354 100644 --- a/mock/src/dataio.rs +++ b/mock/src/dataio.rs @@ -77,7 +77,6 @@ pub struct FinalizationHandler { } impl FinalizationHandlerT for FinalizationHandler { - fn data_finalized(&mut self, data: Data) { if let Err(e) = self.tx.unbounded_send(data) { error!(target: "finalization-handler", "Error when sending data from FinalizationHandler {:?}.", e); diff --git a/types/src/dataio.rs b/types/src/dataio.rs index daee41a8..b1fa32d3 100644 --- a/types/src/dataio.rs +++ b/types/src/dataio.rs @@ -1,7 +1,7 @@ use aleph_bft_crypto::NodeMap; use async_trait::async_trait; -use crate::{Data, NodeIndex, Round, Hasher}; +use crate::{Data, Hasher, NodeIndex, Round}; /// The source of data items that consensus should order. /// @@ -43,7 +43,9 @@ pub struct OrderedUnit { pub round: Round, } -impl> FinalizationHandler>> for FH { +impl> FinalizationHandler>> + for FH +{ fn data_finalized(&mut self, batch: Vec>) { for unit in batch { if let Some(data) = unit.data {