mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 10:47:55 +00:00
put TryInto and TryFrom in sp_std::prelude (#10183)
* Switch to Rust 2021 * Update trybuild to fix errors * half baked * fix * remove unused import * remove more warnings Co-authored-by: Bastian Köcher <info@kchr.de>
This commit is contained in:
@@ -23,7 +23,7 @@ use frame_support::{
|
||||
BoundedSlice,
|
||||
};
|
||||
use sp_runtime::{DispatchError, DispatchResult};
|
||||
use sp_std::convert::TryFrom;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
impl<T: Config<I>, I: 'static> Inspect<<T as SystemConfig>::AccountId> for Pallet<T, I> {
|
||||
type InstanceId = T::InstanceId;
|
||||
|
||||
@@ -21,7 +21,7 @@ use super::*;
|
||||
use crate::mock::*;
|
||||
use frame_support::{assert_noop, assert_ok, traits::Currency};
|
||||
use pallet_balances::Error as BalancesError;
|
||||
use sp_std::convert::TryInto;
|
||||
use sp_std::prelude::*;
|
||||
|
||||
fn assets() -> Vec<(u64, u32, u32)> {
|
||||
let mut r: Vec<_> = Account::<Test>::iter().map(|x| x.0).collect();
|
||||
|
||||
Reference in New Issue
Block a user