Skip to content

Commit

Permalink
Follow the convention
Browse files Browse the repository at this point in the history
  • Loading branch information
Cem Eliguzel committed Sep 21, 2023
1 parent c8db133 commit 26b6fd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions benchmarking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

mod tests;

#[doc(hidden)]
pub use codec;
pub use frame_benchmarking::{
benchmarking, whitelisted_caller, BenchmarkBatch, BenchmarkConfig, BenchmarkError, BenchmarkList,
BenchmarkMetadata, BenchmarkParameter, BenchmarkResult, Benchmarking, BenchmarkingSetup,
Expand Down Expand Up @@ -289,13 +291,13 @@ macro_rules! benchmarks_iter {
>:: [< new_call_variant_ $dispatch >] (
$($arg),*
);
let __benchmarked_call_encoded = codec::Encode::encode(
let __benchmarked_call_encoded = $crate::codec::Encode::encode(
&__call
);
}: {
let __call_decoded = <
$pallet::Call::<$runtime $(, $instance )?>
as codec::Decode
as $crate::codec::Decode
>::decode(&mut &__benchmarked_call_encoded[..])
.expect("call is encoded above, encoding must be correct");
let __origin = $crate::to_origin!($origin $(, $origin_type)?);
Expand Down
4 changes: 2 additions & 2 deletions traits/src/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
pub use codec;
#[doc(hidden)]
pub use frame_support;
#[doc(hidden)]
pub use sp_runtime;
use frame_support::Parameter;
#[doc(hidden)]
pub use paste;
#[doc(hidden)]
pub use scale_info;
#[doc(hidden)]
pub use sp_runtime;

pub trait RuntimeParameterStore {
type AggregratedKeyValue: AggregratedKeyValue;
Expand Down

0 comments on commit 26b6fd5

Please sign in to comment.