mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 02:51:08 +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:
@@ -1,5 +1,3 @@
|
||||
use std::convert::TryInto;
|
||||
|
||||
/// Simple u32 power of 2 function - simply uses a bit shift
|
||||
macro_rules! pow2 {
|
||||
($n:expr) => {
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
|
||||
//! Useful function for inflation for nominated proof of stake.
|
||||
|
||||
use core::convert::TryFrom;
|
||||
use sp_arithmetic::{
|
||||
biguint::BigUint,
|
||||
traits::{SaturatedConversion, Zero},
|
||||
|
||||
@@ -256,7 +256,6 @@ benchmarks! {
|
||||
}
|
||||
|
||||
unbond {
|
||||
use sp_std::convert::TryFrom;
|
||||
// clean up any existing state.
|
||||
clear_validators_and_nominators::<T>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user