Fix clippy warnings on beta channel

This commit is contained in:
Jon Häggblad
2022-02-23 14:45:41 +01:00
parent fa00f85a31
commit 4fedf05b64
4 changed files with 6 additions and 6 deletions
@@ -252,7 +252,7 @@ impl<C> Client<C> {
where
C: CosmWasmClient + Sync,
{
Ok(self.nymd.get_mixnet_contract_version().await?)
self.nymd.get_mixnet_contract_version().await
}
pub async fn get_rewarding_status(
@@ -20,7 +20,7 @@ pub async fn delegate_to_mixnode(
.delegate_to_mixnode(identity, &delegation)
.await?;
Ok(DelegationResult::new(
&nymd_client!(state).address().to_string(),
nymd_client!(state).address().as_ref(),
identity,
Some(delegation.into()),
))
@@ -35,7 +35,7 @@ pub async fn undelegate_from_mixnode(
.remove_mixnode_delegation(identity)
.await?;
Ok(DelegationResult::new(
&nymd_client!(state).address().to_string(),
nymd_client!(state).address().as_ref(),
identity,
None,
))
@@ -20,7 +20,7 @@ pub async fn vesting_delegate_to_mixnode(
.vesting_delegate_to_mixnode(identity, &delegation)
.await?;
Ok(DelegationResult::new(
&nymd_client!(state).address().to_string(),
nymd_client!(state).address().as_ref(),
identity,
Some(delegation.into()),
))
@@ -35,7 +35,7 @@ pub async fn vesting_undelegate_from_mixnode(
.vesting_undelegate_from_mixnode(identity)
.await?;
Ok(DelegationResult::new(
&nymd_client!(state).address().to_string(),
nymd_client!(state).address().as_ref(),
identity,
None,
))
+1 -1
View File
@@ -116,7 +116,7 @@ impl<C> Client<C> {
where
C: CosmWasmClient + Sync,
{
Ok(self.0.read().await.get_current_interval().await?)
self.0.read().await.get_current_interval().await
}
pub(crate) async fn get_mixnodes(&self) -> Result<Vec<MixNodeBond>, ValidatorClientError>