Conditionally compile constructor
The `ChunksIterator` constructor is only used when either `electrum` or `esplora` features are enabled. Conditionally build it so that we do not get a clippy warning when building without these features.
This commit is contained in:
parent
ba8ce7233d
commit
343e97da0e
@ -156,8 +156,8 @@ pub struct ChunksIterator<I: Iterator> {
|
|||||||
size: usize,
|
size: usize,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(any(feature = "electrum", feature = "esplora"))]
|
||||||
impl<I: Iterator> ChunksIterator<I> {
|
impl<I: Iterator> ChunksIterator<I> {
|
||||||
#[allow(dead_code)]
|
|
||||||
pub fn new(iter: I, size: usize) -> Self {
|
pub fn new(iter: I, size: usize) -> Self {
|
||||||
ChunksIterator { iter, size }
|
ChunksIterator { iter, size }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user