mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 13:21:01 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user