mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Fix/ignore clippy warnings (#1157)
* fix/ignore clippy * --locked check && test * RUSTC_WRAPPER="" for clippy-nightly, check-nightly, test-nightly
This commit is contained in:
committed by
Bastian Köcher
parent
70f87e826c
commit
87cbb382d9
@@ -16,6 +16,10 @@
|
||||
|
||||
//! Tokens swap using token-swap bridge pallet.
|
||||
|
||||
// TokenSwapBalances fields are never directly accessed, but the whole struct is printed
|
||||
// to show token swap progress
|
||||
#![allow(dead_code)]
|
||||
|
||||
use codec::Encode;
|
||||
use num_traits::One;
|
||||
use rand::random;
|
||||
@@ -436,7 +440,7 @@ impl SwapTokens {
|
||||
|
||||
// prepare token swap intention
|
||||
Ok(bp_token_swap::TokenSwap {
|
||||
swap_type: self.prepare_token_swap_type(&source_client).await?,
|
||||
swap_type: self.prepare_token_swap_type(source_client).await?,
|
||||
source_balance_at_this_chain,
|
||||
source_account_at_this_chain: source_account_at_this_chain.clone(),
|
||||
target_balance_at_bridged_chain,
|
||||
@@ -498,26 +502,26 @@ async fn read_account_balances<Source: ChainWithBalances, Target: ChainWithBalan
|
||||
) -> anyhow::Result<TokenSwapBalances<BalanceOf<Source>, BalanceOf<Target>>> {
|
||||
Ok(TokenSwapBalances {
|
||||
source_account_at_this_chain_balance: read_account_balance(
|
||||
&source_client,
|
||||
source_client,
|
||||
&accounts.source_account_at_this_chain,
|
||||
)
|
||||
.await?,
|
||||
source_account_at_bridged_chain_balance: read_account_balance(
|
||||
&target_client,
|
||||
target_client,
|
||||
&accounts.source_account_at_bridged_chain,
|
||||
)
|
||||
.await?,
|
||||
target_account_at_bridged_chain_balance: read_account_balance(
|
||||
&target_client,
|
||||
target_client,
|
||||
&accounts.target_account_at_bridged_chain,
|
||||
)
|
||||
.await?,
|
||||
target_account_at_this_chain_balance: read_account_balance(
|
||||
&source_client,
|
||||
source_client,
|
||||
&accounts.target_account_at_this_chain,
|
||||
)
|
||||
.await?,
|
||||
swap_account_balance: read_account_balance(&source_client, &accounts.swap_account).await?,
|
||||
swap_account_balance: read_account_balance(source_client, &accounts.swap_account).await?,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -82,15 +82,6 @@ pub struct QueuedHeaders<P: HeadersSyncPipeline> {
|
||||
prune_border: P::Number,
|
||||
}
|
||||
|
||||
/// Header completion data.
|
||||
#[derive(Debug)]
|
||||
struct HeaderCompletion<Completion> {
|
||||
/// Last time when we tried to upload completion data to target node, if ever.
|
||||
pub last_upload_time: Option<Instant>,
|
||||
/// Completion data.
|
||||
pub completion: Completion,
|
||||
}
|
||||
|
||||
impl<P: HeadersSyncPipeline> Default for QueuedHeaders<P> {
|
||||
fn default() -> Self {
|
||||
QueuedHeaders {
|
||||
|
||||
Reference in New Issue
Block a user