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:
gupnik
2023-11-22 17:32:49 +05:30
committed by GitHub
parent a9ba1e540f
commit 98f9e2ea9d
3 changed files with 1 additions and 3 deletions
@@ -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<_>>()
}