Skip to content

Commit 8ec2d35

Browse files
committed
primitives: Derive Clone on witness::Iter
There is no obvious reason why the witness iterator cannot be cloned.
1 parent 41f26cf commit 8ec2d35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

primitives/src/witness.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ impl fmt::Debug for Witness {
361361
}
362362

363363
/// An iterator returning individual witness elements.
364+
#[derive(Clone)]
364365
pub struct Iter<'a> {
365366
inner: &'a [u8],
366367
indices_start: usize,

0 commit comments

Comments
 (0)