mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 06:21:11 +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
|
//! Benchmarking setup for pallet-template
|
||||||
#![cfg(feature = "runtime-benchmarks")]
|
#![cfg(feature = "runtime-benchmarks")]
|
||||||
use super::*;
|
use super::*;
|
||||||
use sp_std::vec;
|
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
use crate::Pallet as Template;
|
use crate::Pallet as Template;
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ use frame_benchmarking::v2::*;
|
|||||||
use frame_support::assert_ok;
|
use frame_support::assert_ok;
|
||||||
use frame_system::RawOrigin;
|
use frame_system::RawOrigin;
|
||||||
use sp_core::crypto::FromEntropy;
|
use sp_core::crypto::FromEntropy;
|
||||||
use sp_std::vec;
|
|
||||||
|
|
||||||
/// Trait describing the factory function for the `AssetKind` parameter.
|
/// Trait describing the factory function for the `AssetKind` parameter.
|
||||||
pub trait AssetKindFactory<AssetKind> {
|
pub trait AssetKindFactory<AssetKind> {
|
||||||
|
|||||||
@@ -517,7 +517,7 @@ pub fn benchmarks(
|
|||||||
components,
|
components,
|
||||||
// TODO: Not supported by V2 syntax as of yet.
|
// TODO: Not supported by V2 syntax as of yet.
|
||||||
// https://github.com/paritytech/substrate/issues/13132
|
// https://github.com/paritytech/substrate/issues/13132
|
||||||
pov_modes: vec![],
|
pov_modes: #krate::__private::vec![],
|
||||||
}
|
}
|
||||||
}).collect::<#krate::__private::Vec<_>>()
|
}).collect::<#krate::__private::Vec<_>>()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user