[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
@@ -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);