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
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)