From ff9d241b7b3c452a368933c616749aeb576e63b8 Mon Sep 17 00:00:00 2001 From: Shady Khalifa Date: Wed, 27 Nov 2024 19:46:25 +0200 Subject: [PATCH] chore: clippy --- blueprint-metadata/src/lib.rs | 2 +- sdk/src/contexts/services.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blueprint-metadata/src/lib.rs b/blueprint-metadata/src/lib.rs index a9e03558..60efe587 100644 --- a/blueprint-metadata/src/lib.rs +++ b/blueprint-metadata/src/lib.rs @@ -302,7 +302,7 @@ fn extract_blueprint_metadata(package: &Package) -> BlueprintMetadata { serde_json::from_value(blueprint.clone()).expect("Failed to deserialize gadget."); match &mut metadata.manager { BlueprintManager::Evm(manager) => { - let path = resolve_evm_contract_path_by_name(&manager); + let path = resolve_evm_contract_path_by_name(manager); *manager = path.display().to_string(); } _ => unreachable!("Unsupported blueprint manager"), diff --git a/sdk/src/contexts/services.rs b/sdk/src/contexts/services.rs index 85acea16..6b06d4f5 100644 --- a/sdk/src/contexts/services.rs +++ b/sdk/src/contexts/services.rs @@ -9,6 +9,7 @@ use tangle_subxt::tangle_testnet_runtime::api::system::storage::types::number::N use tangle_subxt::tangle_testnet_runtime::api::runtime_types::pallet_multi_asset_delegation::types::delegator::DelegatorMetadata; /// `ServicesContext` trait provides access to the current service and current blueprint from the context. +#[allow(clippy::type_complexity)] pub trait ServicesContext { type Config: subxt::Config; /// Get the current blueprint information from the context.