From acf72749c25e82c759fbe442c5a0285d2ba78189 Mon Sep 17 00:00:00 2001 From: Hugo Trentesaux <hugo@trentesaux.fr> Date: Wed, 29 Nov 2023 22:12:19 +0100 Subject: [PATCH] clippy --- src/commands/smith.rs | 12 ++++-------- src/commands/sudo.rs | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/commands/smith.rs b/src/commands/smith.rs index 807381f..efd32d4 100644 --- a/src/commands/smith.rs +++ b/src/commands/smith.rs @@ -14,26 +14,22 @@ fn session_keys_decode(session_keys: SessionKeys) -> RuntimeSessionKeys { runtime::runtime_types::sp_core::ed25519::Public( session_keys[0..32].try_into().unwrap(), ), - ) - .into(), + ), babe: runtime::runtime_types::sp_consensus_babe::app::Public( runtime::runtime_types::sp_core::sr25519::Public( session_keys[32..64].try_into().unwrap(), ), - ) - .into(), + ), im_online: runtime::runtime_types::pallet_im_online::sr25519::app_sr25519::Public( runtime::runtime_types::sp_core::sr25519::Public( session_keys[64..96].try_into().unwrap(), ), - ) - .into(), + ), authority_discovery: runtime::runtime_types::sp_authority_discovery::app::Public( runtime::runtime_types::sp_core::sr25519::Public( session_keys[96..128].try_into().unwrap(), ), - ) - .into(), + ), } } diff --git a/src/commands/sudo.rs b/src/commands/sudo.rs index b54e5eb..b9fce46 100644 --- a/src/commands/sudo.rs +++ b/src/commands/sudo.rs @@ -51,6 +51,6 @@ pub async fn set_distance_ok(data: &Data, identity: IdtyId) -> Result<(), subxt: submit_call_and_look_event::< runtime::sudo::events::Sudid, Payload<runtime::sudo::calls::types::Sudo>, - >(data, &runtime::tx().sudo().sudo(inner.into())) + >(data, &runtime::tx().sudo().sudo(inner)) .await } -- GitLab