From 04f66089b5417a5f85a12b3a36278217c6341815 Mon Sep 17 00:00:00 2001 From: devdanco Date: Thu, 2 Feb 2023 08:39:46 +0100 Subject: [PATCH] fix fmt --- .../src/basic_authorship.rs | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/client/basic-authorship-ver/src/basic_authorship.rs b/client/basic-authorship-ver/src/basic_authorship.rs index 37172edd6f709..8a38c38fa5304 100644 --- a/client/basic-authorship-ver/src/basic_authorship.rs +++ b/client/basic-authorship-ver/src/basic_authorship.rs @@ -794,10 +794,9 @@ mod tests { .unwrap(); } - let block = - block_on(proposer.propose(inherent_data, Default::default(), deadline, None)) - .map(|r| r.block) - .unwrap(); + let block = block_on(proposer.propose(inherent_data, Default::default(), deadline, None)) + .map(|r| r.block) + .unwrap(); // then // block should have some extrinsics although we have some more in the pool. @@ -898,8 +897,7 @@ mod tests { let deadline = time::Duration::from_secs(9); let proposal = - block_on(proposer.propose(inherent_data, Default::default(), deadline, None)) - .unwrap(); + block_on(proposer.propose(inherent_data, Default::default(), deadline, None)).unwrap(); assert_eq!(proposal.block.extrinsics().len(), 1); @@ -1096,10 +1094,9 @@ mod tests { // when // give it enough time so that deadline is never triggered. let deadline = time::Duration::from_secs(90); - let block = - block_on(proposer.propose(inherent_data, Default::default(), deadline, None)) - .map(|r| r.block) - .unwrap(); + let block = block_on(proposer.propose(inherent_data, Default::default(), deadline, None)) + .map(|r| r.block) + .unwrap(); // then block should have all non-exhaust resources extrinsics (+ the first one). assert_eq!(block.extrinsics().len(), 1); @@ -1179,10 +1176,9 @@ mod tests { .unwrap(); } - let block = - block_on(proposer.propose(inherent_data, Default::default(), deadline, None)) - .map(|r| r.block) - .unwrap(); + let block = block_on(proposer.propose(inherent_data, Default::default(), deadline, None)) + .map(|r| r.block) + .unwrap(); // then the block should have no transactions despite some in the pool assert_eq!(block.extrinsics().len(), 1);