Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
akildemir committed Sep 19, 2023
1 parent 4fc31c5 commit 0802ceb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion substrate/client/tests/dex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ serai_test!(
assert_eq!(
events,
vec![DexEvent::PoolCreated {
creator: pair.public().into(),
creator: pair.public(),
pool_id: (Coin::Serai, coin),
lp_token: 0 // first lp token that is created in the chain
}]
Expand Down
8 changes: 5 additions & 3 deletions substrate/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ impl assets::Config<assets::Instance1> for Runtime {

type WeightInfo = assets::weights::SubstrateWeight<Runtime>; // same as the normal assets?
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkHelper = SeraiAssetBenchmarkHelper;
type BenchmarkHelper = ();
}

impl tokens::Config for Runtime {
Expand Down Expand Up @@ -414,8 +414,10 @@ impl dex::Config for Runtime {
type AllowMultiAssetPools = ConstBool<false>;

type WeightInfo = dex::weights::SubstrateWeight<Runtime>;
#[cfg(feature = "runtime-benchmarks")]
type BenchmarkHelper = SeraiAssetBenchmarkHelper;
// TODO: Enabling following lines fails the clippy. "No BenchmarkHelper
// on trait dex::Config" :(.
// #[cfg(feature = "runtime-benchmarks")]
// type BenchmarkHelper = SeraiAssetBenchmarkHelper;
}

pub struct IdentityValidatorIdOf;
Expand Down

0 comments on commit 0802ceb

Please sign in to comment.