Switch to Rust 2021 (#10170)

* Switch to Rust 2021

* Update trybuild to fix errors
This commit is contained in:
Bastian Köcher
2021-11-04 19:54:48 +01:00
committed by GitHub
parent 9fb9d7b8f0
commit b08d3017a8
245 changed files with 264 additions and 279 deletions
@@ -2,7 +2,7 @@
name = "substrate-build-script-utils"
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/"
+1 -1
View File
@@ -2,7 +2,7 @@
name = "fork-tree"
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 = "frame-benchmarking-cli"
version = "4.0.0-dev"
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 = "substrate-frame-cli"
version = "4.0.0-dev"
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 = "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
@@ -2,7 +2,7 @@
name = "remote-externalities"
version = "0.10.0-dev"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
+1 -1
View File
@@ -5,7 +5,7 @@ authors = [
"Parity Technologies <admin@parity.io>",
"Andrew Dirksen <andrew@dirksen.com>",
]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
+1 -1
View File
@@ -2,7 +2,7 @@
name = "substrate-frame-rpc-system"
version = "4.0.0-dev"
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 = "try-runtime-cli"
version = "0.10.0-dev"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
license = "Apache-2.0"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
+1 -1
View File
@@ -4,7 +4,7 @@ name = "substrate-prometheus-endpoint"
version = "0.9.0"
license = "Apache-2.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
edition = "2021"
homepage = "https://substrate.io"
repository = "https://github.com/paritytech/substrate/"
readme = "README.md"
+1 -1
View File
@@ -3,7 +3,7 @@ name = "substrate-wasm-builder"
version = "5.0.0-dev"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Utility for building WASM binaries"
edition = "2018"
edition = "2021"
readme = "README.md"
repository = "https://github.com/paritytech/substrate/"
license = "Apache-2.0"