primitives: Derive Clone on witness::Iter

There is no obvious reason why the witness iterator cannot be cloned.
This commit is contained in:
Tobin C. Harding 2025-04-11 09:23:05 +10:00
parent 41f26cf090
commit 8ec2d353c9
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ impl fmt::Debug for Witness {
} }
/// An iterator returning individual witness elements. /// An iterator returning individual witness elements.
#[derive(Clone)]
pub struct Iter<'a> { pub struct Iter<'a> {
inner: &'a [u8], inner: &'a [u8],
indices_start: usize, indices_start: usize,