diff --git a/.github/workflows/cargo-tests.yml b/.github/workflows/cargo-tests.yml index 59e0cdd..fdb5cad 100644 --- a/.github/workflows/cargo-tests.yml +++ b/.github/workflows/cargo-tests.yml @@ -70,6 +70,9 @@ jobs: - name: Run tests run: cargo test --release + + - name: Check benchmarking compilation + run: cargo check --release --features runtime-benchmarks - name: Check clippy run: cargo clippy --release --locked --all-targets -- -D warnings diff --git a/runtime/src/xcm_config.rs b/runtime/src/xcm_config.rs index 0d73a7a..6a3065b 100644 --- a/runtime/src/xcm_config.rs +++ b/runtime/src/xcm_config.rs @@ -183,11 +183,6 @@ pub type XcmRouter = WithUniqueTopic<( XcmpQueue, )>; -#[cfg(feature = "runtime-benchmarks")] -parameter_types! { - pub ReachableDest: Option = Some(Parent.into()); -} - parameter_types! { pub const MaxLockers: u32 = 8; pub const MaxRemoteLockConsumers: u32 = 0; @@ -202,8 +197,6 @@ impl pallet_xcm::Config for Runtime { type ExecuteXcmOrigin = EnsureXcmOrigin; type MaxLockers = MaxLockers; type MaxRemoteLockConsumers = MaxLockers; - #[cfg(feature = "runtime-benchmarks")] - type ReachableDest = ReachableDest; type RemoteLockConsumerIdentifier = (); type RuntimeCall = RuntimeCall; type RuntimeEvent = RuntimeEvent;