Skip to content

Commit

Permalink
fix: apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli committed Dec 5, 2022
1 parent 5f86576 commit 91d932b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 5 additions & 7 deletions nodes/parachain/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,12 @@ pub fn run() -> Result<()> {
cmd.run(partials.client)
}),
#[cfg(not(feature = "runtime-benchmarks"))]
(BenchmarkCmd::Storage(_), _) => {
return Err(sc_cli::Error::Input(
"Compile with --features=runtime-benchmarks \
(BenchmarkCmd::Storage(_), _) => Err(sc_cli::Error::Input(
"Compile with --features=runtime-benchmarks \
to enable storage benchmarks."
.into(),
)
.into())
}
.into(),
)
.into()),
#[cfg(feature = "runtime-benchmarks")]
(BenchmarkCmd::Storage(cmd), "spiritnet") => runner.sync_run(|config| {
let partials = new_partial::<spiritnet_runtime::RuntimeApi, SpiritnetRuntimeExecutor, _>(
Expand Down
12 changes: 7 additions & 5 deletions pallets/pallet-did-lookup/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ use frame_support::{
use sp_std::{marker::PhantomData, vec};

#[cfg(feature = "try-runtime")]
use frame_support::codec::{Decode, Encode};
#[cfg(feature = "try-runtime")]
use frame_support::inherent::Vec;
#[cfg(feature = "try-runtime")]
use sp_runtime::SaturatedConversion;
use {
frame_support::{
codec::{Decode, Encode},
inherent::Vec,
},
sp_runtime::SaturatedConversion,
};

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

0 comments on commit 91d932b

Please sign in to comment.