diff --git a/beacon_node/http_api/src/lib.rs b/beacon_node/http_api/src/lib.rs index 1d04dd7295e..f89bc3c29fb 100644 --- a/beacon_node/http_api/src/lib.rs +++ b/beacon_node/http_api/src/lib.rs @@ -1018,7 +1018,8 @@ pub fn serve( let epoch = query.epoch.unwrap_or(current_epoch); Ok(( state - .get_built_sync_committee(epoch, &chain.spec).cloned() + .get_built_sync_committee(epoch, &chain.spec) + .cloned() .map_err(|e| match e { BeaconStateError::SyncCommitteeNotKnown { .. } => { warp_utils::reject::custom_bad_request(format!( @@ -2856,7 +2857,8 @@ pub fn serve( "0x{}", hex::encode( meta_data - .syncnets().cloned() + .syncnets() + .cloned() .unwrap_or_default() .into_bytes() ) diff --git a/beacon_node/network/src/subnet_service/tests/mod.rs b/beacon_node/network/src/subnet_service/tests/mod.rs index 51e8753fc05..658c851ba21 100644 --- a/beacon_node/network/src/subnet_service/tests/mod.rs +++ b/beacon_node/network/src/subnet_service/tests/mod.rs @@ -253,8 +253,10 @@ mod attestation_service { &attestation_service.beacon_chain.spec, ) .unwrap(); - let expected = [SubnetServiceMessage::Subscribe(Subnet::Attestation(subnet_id)), - SubnetServiceMessage::Unsubscribe(Subnet::Attestation(subnet_id))]; + let expected = [ + SubnetServiceMessage::Subscribe(Subnet::Attestation(subnet_id)), + SubnetServiceMessage::Unsubscribe(Subnet::Attestation(subnet_id)), + ]; // Wait for 1 slot duration to get the unsubscription event let events = get_events( diff --git a/beacon_node/store/src/hot_cold_store.rs b/beacon_node/store/src/hot_cold_store.rs index 7f017e66e2d..49bc75393c1 100644 --- a/beacon_node/store/src/hot_cold_store.rs +++ b/beacon_node/store/src/hot_cold_store.rs @@ -1343,7 +1343,8 @@ impl, Cold: ItemStore> HotColdDB ) -> Result { high_restore_point .get_block_root(slot) - .or_else(|_| high_restore_point.get_oldest_block_root()).copied() + .or_else(|_| high_restore_point.get_oldest_block_root()) + .copied() .map_err(HotColdDBError::RestorePointBlockHashError) } diff --git a/consensus/cached_tree_hash/src/impls.rs b/consensus/cached_tree_hash/src/impls.rs index 024e3c3fdc6..efdba32b59d 100644 --- a/consensus/cached_tree_hash/src/impls.rs +++ b/consensus/cached_tree_hash/src/impls.rs @@ -30,9 +30,7 @@ pub fn hash256_iter( values.iter().copied().map(Hash256::to_fixed_bytes) } -pub fn u64_iter( - values: &[u64], -) -> impl ExactSizeIterator + '_ { +pub fn u64_iter(values: &[u64]) -> impl ExactSizeIterator + '_ { let type_size = size_of::(); let vals_per_chunk = BYTES_PER_CHUNK / type_size; values.chunks(vals_per_chunk).map(move |xs| {