From 8c36e9402ae78517686140488cc6bb41c6652264 Mon Sep 17 00:00:00 2001 From: James Wilson Date: Tue, 16 Jan 2024 18:13:02 +0000 Subject: [PATCH] cargo fmt --- subxt/src/backend/unstable/mod.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/subxt/src/backend/unstable/mod.rs b/subxt/src/backend/unstable/mod.rs index d1bbdde971..3f8e7f1312 100644 --- a/subxt/src/backend/unstable/mod.rs +++ b/subxt/src/backend/unstable/mod.rs @@ -474,8 +474,10 @@ impl Backend for UnstableBackend { // Optimization: once we have a `finalized_hash`, we only care about finalized // block refs now and can avoid bothering to save new blocks. if finalized_hash.is_none() { - seen_blocks - .insert(ev.block_hash.hash(), (SeenBlockMarker::New, ev.block_hash)); + seen_blocks.insert( + ev.block_hash.hash(), + (SeenBlockMarker::New, ev.block_hash), + ); } } FollowEvent::Finalized(ev) => { @@ -485,7 +487,7 @@ impl Backend for UnstableBackend { (SeenBlockMarker::Finalized, block_ref), ); } - }, + } _ => {} } continue;