From ab6f5c1a95a568a5401ce8e34a0c4b3d7f4aa3b9 Mon Sep 17 00:00:00 2001 From: nmammeri Date: Mon, 9 Dec 2024 09:36:36 +0100 Subject: [PATCH] refactor: cargo fmt --- state-chain/custom-rpc/src/lib.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/state-chain/custom-rpc/src/lib.rs b/state-chain/custom-rpc/src/lib.rs index 782fa5eeef..3df1c001af 100644 --- a/state-chain/custom-rpc/src/lib.rs +++ b/state-chain/custom-rpc/src/lib.rs @@ -1678,17 +1678,12 @@ where ) { self.new_subscription( NotificationBehaviour::Finalized, /* only_finalized */ - false, /* only_on_changes */ - true, /* end_on_error */ + false, /* only_on_changes */ + true, /* end_on_error */ pending_sink, - move |client, hash| { - Ok( - (*client.runtime_api()) - .cf_transaction_screening_events(hash)? - ) - }, + move |client, hash| Ok((*client.runtime_api()).cf_transaction_screening_events(hash)?), ) - .await; + .await; } async fn cf_subscribe_scheduled_swaps(