Skip to content

Commit e13eafa

Browse files
committed
clippy lint fix
1 parent e21a526 commit e13eafa

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

crates/webzjs-wallet/src/wallet.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,28 +43,26 @@ use zcash_client_backend::proto::service::{
4343
};
4444
use zcash_client_backend::wallet::OvkPolicy;
4545
use zcash_client_backend::zip321::{Payment, TransactionRequest};
46-
use zcash_protocol::ShieldedProtocol;
4746
use zcash_client_memory::{MemBlockCache, MemoryWalletDb};
4847
use zcash_keys::keys::{UnifiedFullViewingKey, UnifiedSpendingKey};
4948
use zcash_primitives::transaction::fees::FeeRule;
5049
use zcash_primitives::transaction::TxId;
5150
use zcash_proofs::prover::LocalTxProver;
52-
51+
use zcash_protocol::ShieldedProtocol;
5352

5453
use zcash_client_backend::sync::run;
5554

56-
use zip32;
57-
use zip32::fingerprint::SeedFingerprint;
5855
use zcash_protocol::consensus::Parameters;
5956
use zcash_protocol::value::Zatoshis;
57+
use zip32;
58+
use zip32::fingerprint::SeedFingerprint;
6059

6160
const BATCH_SIZE: u32 = 10000;
6261

6362
/// constant that signals what's the minimum transparent balance for proposing a
6463
/// shielding transaction
6564
const SHIELDING_THRESHOLD: Zatoshis = Zatoshis::const_from_u64(100000);
6665

67-
6866
/// # A Zcash wallet
6967
///
7068
/// A wallet is a set of accounts that can be synchronized together with the blockchain.
@@ -323,7 +321,7 @@ where
323321
);
324322
let request = TransactionRequest::new(vec![Payment::without_memo(
325323
to_address,
326-
Zatoshis::from_u64(value)?
324+
Zatoshis::from_u64(value)?,
327325
)])?;
328326

329327
tracing::info!("Chain height: {:?}", self.db.read().await.chain_height()?);
@@ -519,7 +517,7 @@ where
519517
let input_selector = GreedyInputSelector::new();
520518
let request = TransactionRequest::new(vec![Payment::without_memo(
521519
to_address,
522-
Zatoshis::from_u64(value)?
520+
Zatoshis::from_u64(value)?,
523521
)])?;
524522
let mut db = self.db.write().await;
525523
let proposal = propose_transfer::<_, _, _,_, <W as WalletCommitmentTrees>::Error>(

0 commit comments

Comments
 (0)