From 5d1530233f7ea94c3914a9866fa9bf65d2cec7ce Mon Sep 17 00:00:00 2001 From: Joseph Zhao Date: Tue, 20 Aug 2024 19:23:10 +0800 Subject: [PATCH] make clippy happy --- bridges/modules/xcm-bridge-hub/src/mock.rs | 3 --- .../runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs | 2 ++ .../runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs | 2 ++ polkadot/xcm/src/v4/junction.rs | 2 -- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bridges/modules/xcm-bridge-hub/src/mock.rs b/bridges/modules/xcm-bridge-hub/src/mock.rs index 263de3e5f8de..636e7d2725a3 100644 --- a/bridges/modules/xcm-bridge-hub/src/mock.rs +++ b/bridges/modules/xcm-bridge-hub/src/mock.rs @@ -44,9 +44,6 @@ use xcm_builder::{ }; use xcm_executor::XcmExecutor; -// const ROCOCO_GENESIS_HASH: [u8; 32] = -// hex!["6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e"]; - pub type AccountId = AccountId32; pub type Balance = u64; diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs index 93f8addf6146..d5beef19ad60 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/lib.rs @@ -91,6 +91,8 @@ use bridge_hub_common::{ use pallet_xcm::EnsureXcm; pub use sp_consensus_aura::sr25519::AuthorityId as AuraId; pub use sp_runtime::{MultiAddress, Perbill, Permill}; + +#[allow(unused_imports)] use xcm::{ latest::{ROCOCO_GENESIS_HASH, WESTEND_GENESIS_HASH}, VersionedLocation, diff --git a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs index 78839de85303..5b7bd91870f2 100644 --- a/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs +++ b/cumulus/parachains/runtimes/bridge-hubs/bridge-hub-westend/src/lib.rs @@ -89,6 +89,8 @@ use bp_runtime::HeaderId; pub use sp_runtime::BuildStorage; use polkadot_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate}; + +#[allow(unused_imports)] use xcm::{ latest::{ROCOCO_GENESIS_HASH, WESTEND_GENESIS_HASH}, prelude::*, diff --git a/polkadot/xcm/src/v4/junction.rs b/polkadot/xcm/src/v4/junction.rs index 8fe01dd57b6b..530594686344 100644 --- a/polkadot/xcm/src/v4/junction.rs +++ b/polkadot/xcm/src/v4/junction.rs @@ -117,8 +117,6 @@ impl From for NetworkId { ByFork { block_number, block_hash } => Self::ByFork { block_number, block_hash }, Polkadot => Self::Polkadot, Kusama => Self::Kusama, - // Westend => Self::Westend, - // Rococo => Self::Rococo, Wococo => Self::Wococo, Ethereum { chain_id } => Self::Ethereum { chain_id }, BitcoinCore => Self::BitcoinCore,