mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 22:07:58 +00:00
Fixes import path in benchmark macro (#2437)
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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> {
|
||||
|
||||
@@ -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<_>>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user