mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
Switch to edition 2021 (#4976)
* Switch to edition 2021 * Reset bridges * Fix compilation * Fix test-runtime * Fix malus
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user