From b8bd86c573f6e5b420ce5668e482cd2b63b71e27 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Mon, 21 Oct 2024 01:28:19 +0200 Subject: [PATCH] lint --- tests/src/utility/support.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/src/utility/support.rs b/tests/src/utility/support.rs index f7c2518..bff59e3 100644 --- a/tests/src/utility/support.rs +++ b/tests/src/utility/support.rs @@ -75,12 +75,7 @@ pub fn create_funded_dummy_account( builder: &mut WasmTestBuilder, account_string: Option<[u8; 32]>, ) -> AccountHash { - let (_, account_public_key) = - create_dummy_key_pair(if let Some(account_string) = account_string { - account_string - } else { - [7u8; 32] - }); + let (_, account_public_key) = create_dummy_key_pair(account_string.unwrap_or([7u8; 32])); let account = account_public_key.to_account_hash(); fund_account(builder, account); account