From e4471f759d99c1773350e527fc010b97fa03007d Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Wed, 1 Sep 2021 17:33:33 +0200 Subject: [PATCH] cargo +nightly fmt --- node/service/src/tests.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/node/service/src/tests.rs b/node/service/src/tests.rs index 8818cad164f0..2b438aa6f1cc 100644 --- a/node/service/src/tests.rs +++ b/node/service/src/tests.rs @@ -419,12 +419,14 @@ fn run_specialized_test_w_harness CaseVars>(case_var_provider: F) // Verify test integrity: the provided highest approved // ancestor must match the chain derived one. - let highest_approved_ancestor_w_desc = - best_chain_containing_block.and_then(|best_chain_containing_block| { + let highest_approved_ancestor_w_desc = best_chain_containing_block + .and_then(|best_chain_containing_block| { chain.blocks_by_hash.get(&target_block).map(|target_block_header| { let target_blocknumber = target_block_header.number; - let highest_approved_ancestor_w_desc = - chain.highest_approved_ancestors(target_blocknumber, best_chain_containing_block); + let highest_approved_ancestor_w_desc = chain.highest_approved_ancestors( + target_blocknumber, + best_chain_containing_block, + ); if let ( Some(highest_approved_ancestor_w_desc), Some(highest_approved_ancestor_block), @@ -436,10 +438,8 @@ fn run_specialized_test_w_harness CaseVars>(case_var_provider: F) highest_approved_ancestor_block, highest_approved_ancestor_w_desc.hash, ); - let expected = chain.undisputed_chain( - target_blocknumber, - highest_approved_ancestor_block, - ); + let expected = chain + .undisputed_chain(target_blocknumber, highest_approved_ancestor_block); assert_eq!( expected, undisputed_chain,