Skip to content

Commit

Permalink
Fixes import path in benchmark macro (paritytech#2437)
Browse files Browse the repository at this point in the history
Fully-qualified path was not being used in benchmark macro for one of
the cases. This PR fixes this and removes the unnecessary import in a
couple of files, which I believe was done to fix this issue.
  • Loading branch information
gupnik authored Nov 22, 2023
1 parent 57bf268 commit 6d071f2
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
//! Benchmarking setup for pallet-template
#![cfg(feature = "runtime-benchmarks")]
use super::*;
use sp_std::vec;

#[allow(unused)]
use crate::Pallet as Template;
Expand Down
1 change: 0 additions & 1 deletion substrate/frame/asset-rate/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ use frame_benchmarking::v2::*;
use frame_support::assert_ok;
use frame_system::RawOrigin;
use sp_core::crypto::FromEntropy;
use sp_std::vec;

/// Trait describing the factory function for the `AssetKind` parameter.
pub trait AssetKindFactory<AssetKind> {
Expand Down
2 changes: 1 addition & 1 deletion substrate/frame/support/procedural/src/benchmark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ pub fn benchmarks(
components,
// TODO: Not supported by V2 syntax as of yet.
// https://github.com/paritytech/substrate/issues/13132
pov_modes: vec![],
pov_modes: #krate::__private::vec![],
}
}).collect::<#krate::__private::Vec<_>>()
}
Expand Down

0 comments on commit 6d071f2

Please sign in to comment.