Update to 2024 edition (#2001)

* Update to 2024 edition

* Update to 2024 edition; fmt, use<> and remove refs

* async functions
This commit is contained in:
James Wilson
2025-05-09 16:12:18 +01:00
committed by GitHub
parent 98c1d153b6
commit 23c62f3d5d
120 changed files with 399 additions and 322 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ use crate::{
};
use alloc::vec::Vec;
use hashbrown::HashMap;
use scale_info::{form::PortableForm, Field, PortableRegistry, TypeDef, TypeDefVariant, Variant};
use scale_info::{Field, PortableRegistry, TypeDef, TypeDefVariant, Variant, form::PortableForm};
// The number of bytes our `hash` function produces.
pub(crate) const HASH_LEN: usize = 32;
@@ -604,7 +604,7 @@ mod tests {
use super::*;
use bitvec::{order::Lsb0, vec::BitVec};
use frame_metadata::v15;
use scale_info::{meta_type, Registry};
use scale_info::{Registry, meta_type};
// Define recursive types.
#[allow(dead_code)]
+1 -1
View File
@@ -5,7 +5,7 @@
use alloc::borrow::ToOwned;
use alloc::string::String;
use hashbrown::HashMap;
use scale_info::{form::PortableForm, PortableRegistry, TypeDef, Variant};
use scale_info::{PortableRegistry, TypeDef, Variant, form::PortableForm};
/// Given some type ID and type registry, build a couple of
/// indexes to look up variants by index or name. If the ID provided