fix clippy things (#1200)

This commit is contained in:
Svyatoslav Nikolsky
2021-11-04 15:59:20 +03:00
committed by Bastian Köcher
parent 48121604cd
commit c2b38ba530
9 changed files with 26 additions and 26 deletions
@@ -118,7 +118,7 @@ async fn prepare_initial_header(
let initial_header = sub_client.header_by_number(Zero::zero()).await;
initial_header
.map(|header| (HeaderId(Zero::zero(), header.hash()), header.encode()))
.map_err(|error| Error::ReadGenesisHeader(error))
.map_err(Error::ReadGenesisHeader)
},
}
}
@@ -134,7 +134,7 @@ async fn prepare_initial_authorities_set(
None => sub_client.grandpa_authorities_set(sub_initial_header_hash).await,
};
initial_authorities_set.map_err(|error| Error::ReadAuthorities(error))
initial_authorities_set.map_err(Error::ReadAuthorities)
}
/// Deploy bridge contract to Ethereum chain.
@@ -160,5 +160,5 @@ async fn deploy_bridge_contract(
),
)
.await
.map_err(|error| Error::DeployContract(error))
.map_err(Error::DeployContract)
}