metadata: Exclude field::type_name from metadata validation (#595)

* metadata: Exclude `field::type_name` from metadata validation

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>

* Adjust code-base to rust `1.62.0`

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2022-07-07 12:23:23 +03:00
committed by GitHub
parent c55b7ba3e3
commit b3f6ff1cf8
4 changed files with 8 additions and 12 deletions
-3
View File
@@ -72,9 +72,6 @@ fn get_field_hash(
if let Some(name) = field.name() {
bytes = xor(bytes, hash(name.as_bytes()));
}
if let Some(name) = field.type_name() {
bytes = xor(bytes, hash(name.as_bytes()));
}
bytes
}