[Deps] Bump scale-info to match cumulus and polkadot (#13873)

* [Deps] Bump scale-info to match cumulus and polkadot

* fix Cargo.lock

* fix identity

* more fixes

* fix

* fixes

* more fixes
This commit is contained in:
Roman Useinov
2023-04-12 14:14:06 +02:00
committed by GitHub
parent 4253ecbc62
commit 376a288fb6
108 changed files with 158 additions and 158 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ impl-trait-for-tuples = "0.2.2"
log = { version = "0.4.17", default-features = false }
paste = "1.0"
rand = { version = "0.8.5", optional = true }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
scale-info = { version = "2.5.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.136", features = ["derive"], optional = true }
sp-application-crypto = { version = "7.0.0", default-features = false, path = "../application-crypto" }
sp-arithmetic = { version = "6.0.0", default-features = false, path = "../arithmetic" }
@@ -453,8 +453,8 @@ mod tests {
#[test]
fn digest_item_type_info() {
let type_info = DigestItem::type_info();
let variants = if let scale_info::TypeDef::Variant(variant) = type_info.type_def() {
variant.variants()
let variants = if let scale_info::TypeDef::Variant(variant) = type_info.type_def {
variant.variants
} else {
panic!("Should be a TypeDef::TypeDefVariant")
};
@@ -475,10 +475,10 @@ mod tests {
let encoded = digest_item.encode();
let variant = variants
.iter()
.find(|v| v.name() == &variant_name)
.find(|v| v.name == variant_name)
.expect(&format!("Variant {} not found", variant_name));
assert_eq!(encoded[0], variant.index())
assert_eq!(encoded[0], variant.index)
};
check(DigestItemType::Other);