Skip to content

Commit 91d932b

Browse files
committed
fix: apply suggestions from code review
1 parent 5f86576 commit 91d932b

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

nodes/parachain/src/command.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -337,14 +337,12 @@ pub fn run() -> Result<()> {
337337
cmd.run(partials.client)
338338
}),
339339
#[cfg(not(feature = "runtime-benchmarks"))]
340-
(BenchmarkCmd::Storage(_), _) => {
341-
return Err(sc_cli::Error::Input(
342-
"Compile with --features=runtime-benchmarks \
340+
(BenchmarkCmd::Storage(_), _) => Err(sc_cli::Error::Input(
341+
"Compile with --features=runtime-benchmarks \
343342
to enable storage benchmarks."
344-
.into(),
345-
)
346-
.into())
347-
}
343+
.into(),
344+
)
345+
.into()),
348346
#[cfg(feature = "runtime-benchmarks")]
349347
(BenchmarkCmd::Storage(cmd), "spiritnet") => runner.sync_run(|config| {
350348
let partials = new_partial::<spiritnet_runtime::RuntimeApi, SpiritnetRuntimeExecutor, _>(

pallets/pallet-did-lookup/src/migrations.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ use frame_support::{
2828
use sp_std::{marker::PhantomData, vec};
2929

3030
#[cfg(feature = "try-runtime")]
31-
use frame_support::codec::{Decode, Encode};
32-
#[cfg(feature = "try-runtime")]
33-
use frame_support::inherent::Vec;
34-
#[cfg(feature = "try-runtime")]
35-
use sp_runtime::SaturatedConversion;
31+
use {
32+
frame_support::{
33+
codec::{Decode, Encode},
34+
inherent::Vec,
35+
},
36+
sp_runtime::SaturatedConversion,
37+
};
3638

3739
#[storage_alias]
3840
type ConnectedDids<T: Config> = StorageMap<Pallet<T>, Blake2_128Concat, AccountIdOf<T>, ConnectionRecordOf<T>>;

0 commit comments

Comments
 (0)