Fix some minor compiler and clippy warnings
This commit is contained in:
@@ -66,6 +66,7 @@ pub(crate) mod tests {
|
||||
#[cfg(test)]
|
||||
mod querying_for_rewarding_status {
|
||||
use super::*;
|
||||
use crate::constants;
|
||||
use crate::delegations::transactions::try_delegate_to_mixnode;
|
||||
use crate::interval::storage::{save_epoch, save_epoch_reward_params};
|
||||
use crate::rewards::transactions::try_reward_mixnode;
|
||||
|
||||
@@ -439,7 +439,6 @@ pub mod tests {
|
||||
use crate::mixnodes::storage::StoredMixnodeBond;
|
||||
use crate::rewards::transactions::try_reward_mixnode;
|
||||
use crate::support::tests;
|
||||
use crate::support::tests::fixtures::epoch_fixture;
|
||||
use crate::support::tests::test_helpers;
|
||||
use az::CheckedCast;
|
||||
use config::defaults::DENOM;
|
||||
|
||||
@@ -19,7 +19,7 @@ pub async fn locked_coins(
|
||||
Ok(
|
||||
nymd_client!(state)
|
||||
.locked_coins(
|
||||
&nymd_client!(state).address().to_string(),
|
||||
nymd_client!(state).address().as_ref(),
|
||||
block_time.map(Timestamp::from_seconds),
|
||||
)
|
||||
.await?
|
||||
@@ -35,7 +35,7 @@ pub async fn spendable_coins(
|
||||
Ok(
|
||||
nymd_client!(state)
|
||||
.spendable_coins(
|
||||
&nymd_client!(state).address().to_string(),
|
||||
nymd_client!(state).address().as_ref(),
|
||||
block_time.map(Timestamp::from_seconds),
|
||||
)
|
||||
.await?
|
||||
|
||||
@@ -23,8 +23,6 @@ use validator_client::nymd::CosmWasmClient;
|
||||
|
||||
pub(crate) mod routes;
|
||||
|
||||
type Epoch = Interval;
|
||||
|
||||
pub struct ValidatorCacheRefresher<C> {
|
||||
nymd_client: Client<C>,
|
||||
cache: ValidatorCache,
|
||||
|
||||
Reference in New Issue
Block a user