mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-20 03:25:41 +00:00
Switch to Rust 2021 (#10170)
* Switch to Rust 2021 * Update trybuild to fix errors
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
name = "generate-bags"
|
||||
version = "3.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "node-runtime-generate-bags"
|
||||
version = "3.0.0"
|
||||
authors = ["Parity Technologies <admin@parity.io>"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
license = "Apache-2.0"
|
||||
homepage = "https://substrate.io"
|
||||
repository = "https://github.com/paritytech/substrate/"
|
||||
|
||||
@@ -71,7 +71,6 @@ fn existential_weight<T: pallet_staking::Config>(
|
||||
minimum_balance: u128,
|
||||
) -> VoteWeight {
|
||||
use frame_support::traits::CurrencyToVote;
|
||||
use std::convert::TryInto;
|
||||
|
||||
T::CurrencyToVote::to_vote(
|
||||
minimum_balance
|
||||
|
||||
Reference in New Issue
Block a user