Skip to content

Commit d2160b3

Browse files
committed
fix: lint errors
1 parent c573340 commit d2160b3

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

runtime/frequency/src/lib.rs

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ mod xcm_queue;
2424

2525
use alloc::borrow::Cow;
2626
use common_runtime::constants::currency::UNITS;
27-
#[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check", feature = "frequency-bridging"))]
27+
#[cfg(any(
28+
not(feature = "frequency-no-relay"),
29+
feature = "frequency-lint-check",
30+
feature = "frequency-bridging"
31+
))]
2832
use cumulus_pallet_parachain_system::{
2933
DefaultCoreSelector, RelayNumberMonotonicallyIncreases, RelaychainDataProvider,
3034
};
@@ -579,7 +583,11 @@ impl frame_system::Config for Runtime {
579583
/// This is used as an identifier of the chain. 42 is the generic substrate prefix.
580584
type SS58Prefix = Ss58Prefix;
581585
/// The action to take on a Runtime Upgrade
582-
#[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check", feature = "frequency-bridging"))]
586+
#[cfg(any(
587+
not(feature = "frequency-no-relay"),
588+
feature = "frequency-lint-check",
589+
feature = "frequency-bridging"
590+
))]
583591
type OnSetCode = cumulus_pallet_parachain_system::ParachainSetCode<Self>;
584592
#[cfg(feature = "frequency-no-relay")]
585593
type OnSetCode = ();
@@ -1149,7 +1157,11 @@ const RELAY_CHAIN_SLOT_DURATION_MILLIS: u32 = 6_000;
11491157

11501158
// See https://paritytech.github.io/substrate/master/pallet_parachain_system/index.html for
11511159
// the descriptions of these configs.
1152-
#[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check", feature = "frequency-bridging"))]
1160+
#[cfg(any(
1161+
not(feature = "frequency-no-relay"),
1162+
feature = "frequency-lint-check",
1163+
feature = "frequency-bridging"
1164+
))]
11531165
impl cumulus_pallet_parachain_system::Config for Runtime {
11541166
type RuntimeEvent = RuntimeEvent;
11551167
type OnSystemEvent = ();
@@ -1511,7 +1523,11 @@ mod benches {
15111523
);
15121524
}
15131525

1514-
#[cfg(any(not(feature = "frequency-no-relay"), feature = "frequency-lint-check", feature = "frequency-bridging"))]
1526+
#[cfg(any(
1527+
not(feature = "frequency-no-relay"),
1528+
feature = "frequency-lint-check",
1529+
feature = "frequency-bridging"
1530+
))]
15151531
cumulus_pallet_parachain_system::register_validate_block! {
15161532
Runtime = Runtime,
15171533
BlockExecutor = cumulus_pallet_aura_ext::BlockExecutor::<Runtime, Executive>,

0 commit comments

Comments
 (0)