Skip to content

Commit 9dae234

Browse files
committed
clippy
1 parent bb027f1 commit 9dae234

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use zcash_primitives::consensus;
1919
/// The maximum number of checkpoints to store in each shard-tree
2020
pub const PRUNING_DEPTH: usize = 100;
2121

22-
#[cfg(all(feature = "wasm-parallel"))]
22+
#[cfg(feature = "wasm-parallel")]
2323
pub use wasm_bindgen_rayon::init_thread_pool;
2424

2525
#[wasm_bindgen]

src/wallet.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
use std::num::NonZeroU32;
22

33
use bip0039::{English, Mnemonic};
4-
use futures_util::{Stream, StreamExt, TryStreamExt};
4+
use futures_util::{StreamExt, TryStreamExt};
55
use nonempty::NonEmpty;
66
use secrecy::{ExposeSecret, SecretVec, Zeroize};
77
use tonic::{
88
client::GrpcService,
99
codegen::{Body, Bytes, StdError},
10-
Status, Streaming,
1110
};
1211

1312
use crate::error::Error;
1413
use crate::BlockRange;
15-
use rayon::iter::IntoParallelIterator;
16-
use rayon::iter::IntoParallelRefIterator;
17-
use rayon::iter::ParallelIterator;
1814
use std::fmt::Debug;
1915
use std::hash::Hash;
2016
use subtle::ConditionallySelectable;
@@ -29,7 +25,6 @@ use zcash_client_backend::data_api::{
2925
};
3026
use zcash_client_backend::fees::zip317::SingleOutputChangeStrategy;
3127
use zcash_client_backend::proposal::Proposal;
32-
use zcash_client_backend::proto::compact_formats::CompactBlock;
3328
use zcash_client_backend::proto::service::{
3429
self, compact_tx_streamer_client::CompactTxStreamerClient,
3530
};
@@ -46,8 +41,6 @@ use zcash_primitives::transaction::TxId;
4641
use zcash_proofs::prover::LocalTxProver;
4742

4843
use zcash_client_backend::sync::run;
49-
/// The maximum number of checkpoints to store in each shard-tree
50-
const PRUNING_DEPTH: usize = 100;
5144
const BATCH_SIZE: u32 = 10000;
5245

5346
/// # A Zcash wallet

0 commit comments

Comments
 (0)