Clippy fixes (#2033)

* clippy fixed

* wasm clippy

* clippy fixes

* post clippy fmt

* last clippy fix
This commit is contained in:
puzzle-rusher
2025-07-05 00:21:31 +04:00
committed by GitHub
parent 1f57e8fd1a
commit e892802baf
14 changed files with 37 additions and 40 deletions
+5 -4
View File
@@ -584,10 +584,11 @@ impl<'a> MetadataHasher<'a> {
let extrinsic_hash = get_extrinsic_hash(&metadata.types, &metadata.extrinsic);
let custom_values_hash = self
.include_custom_values
.then(|| get_custom_metadata_hash(&metadata.custom()))
.unwrap_or_default();
let custom_values_hash = if self.include_custom_values {
get_custom_metadata_hash(&metadata.custom())
} else {
Default::default()
};
concat_and_hash5(
&pallet_hash,