Fix clippy warnings on beta channel
This commit is contained in:
@@ -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,
|
||||
))
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user