From bbb08680a0116242fd0652f058b4019e30caf633 Mon Sep 17 00:00:00 2001 From: Rakan Alhneiti Date: Fri, 10 Nov 2023 15:10:51 +0300 Subject: [PATCH] Resolve redundancy --- pallets/ddc-staking/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pallets/ddc-staking/src/lib.rs b/pallets/ddc-staking/src/lib.rs index 587f2d6c5..9c8469785 100644 --- a/pallets/ddc-staking/src/lib.rs +++ b/pallets/ddc-staking/src/lib.rs @@ -441,12 +441,12 @@ pub mod pallet { match node_pub_key { NodePubKey::CDNPubKey(_) => T::ClusterVisitor::get_unbonding_delay(&cluster_id, NodeType::CDN) - .map_err(|e| Into::>::into(e))?, + .map_err(Into::>::into)?, NodePubKey::StoragePubKey(_) => T::ClusterVisitor::get_unbonding_delay( &cluster_id, NodeType::Storage, ) - .map_err(|e| Into::>::into(e))?, + .map_err(Into::>::into)?, } } else { // If node is not a member of any cluster, allow immediate unbonding.