Switch to edition 2021 (#4976)

* Switch to edition 2021

* Reset bridges

* Fix compilation

* Fix test-runtime

* Fix malus
This commit is contained in:
Bastian Köcher
2022-02-24 11:20:58 +01:00
committed by GitHub
parent 1ea0f60a72
commit d9d53c17a1
81 changed files with 86 additions and 90 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ name = "polkadot-parachain"
version = "0.9.17"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Types and utilities for creating and working with parachains"
edition = "2018"
edition = "2021"
[dependencies]
# note: special care is taken to avoid inclusion of `sp-io` externals when compiling
-1
View File
@@ -158,7 +158,6 @@ impl From<u32> for Id {
impl From<usize> for Id {
fn from(x: usize) -> Self {
use sp_std::convert::TryInto;
// can't panic, so need to truncate
let x = x.try_into().unwrap_or(u32::MAX);
Id(x)
@@ -3,7 +3,7 @@ name = "test-parachains"
version = "0.9.17"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Integration tests using the test-parachains"
edition = "2018"
edition = "2021"
[dependencies]
tiny-keccak = "2.0.2"
@@ -3,7 +3,7 @@ name = "test-parachain-adder"
version = "0.9.17"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Test parachain which adds to a number as its state transition"
edition = "2018"
edition = "2021"
build = "build.rs"
[dependencies]
@@ -3,7 +3,7 @@ name = "test-parachain-adder-collator"
version = "0.9.17"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Collator for the adder test parachain"
edition = "2018"
edition = "2021"
[[bin]]
name = "adder-collator"
@@ -3,7 +3,7 @@ name = "test-parachain-halt"
version = "0.9.17"
authors = ["Parity Technologies <admin@parity.io>"]
description = "Test parachain which executes forever"
edition = "2018"
edition = "2021"
build = "build.rs"
[dependencies]