Skip to content

Commit

Permalink
Fix cargo clippy (#548)
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv authored May 25, 2022
1 parent fc19f88 commit 962ca61
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions integration-tests/src/metadata/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ async fn full_metadata_check() {
assert!(api.validate_metadata().is_ok());

// Modify the metadata.
let locked_client_metadata = api.client.metadata();
let client_metadata = locked_client_metadata.read();
let mut metadata: RuntimeMetadataV14 = client_metadata.runtime_metadata().clone();
let mut metadata: RuntimeMetadataV14 = {
let locked_client_metadata = api.client.metadata();
let client_metadata = locked_client_metadata.read();
client_metadata.runtime_metadata().clone()
};
metadata.pallets[0].name = "NewPallet".to_string();

let new_api = metadata_to_api(metadata, &cxt).await;
Expand All @@ -100,9 +102,11 @@ async fn constants_check() {
assert!(cxt.api.constants().balances().existential_deposit().is_ok());

// Modify the metadata.
let locked_client_metadata = api.client.metadata();
let client_metadata = locked_client_metadata.read();
let mut metadata: RuntimeMetadataV14 = client_metadata.runtime_metadata().clone();
let mut metadata: RuntimeMetadataV14 = {
let locked_client_metadata = api.client.metadata();
let client_metadata = locked_client_metadata.read();
client_metadata.runtime_metadata().clone()
};

let mut existential = metadata
.pallets
Expand Down

0 comments on commit 962ca61

Please sign in to comment.