Skip to content

Conversation

@ValuedMammal
Copy link
Contributor

I would like to derive Clone for a type in my project which holds some assets but currently cannot since Assets itself is not Clone. This change implements Clone for the Assets type, by deriving it. This felt like a straightforward approach but let me know if I've overlooked something.

@apoelstra
Copy link
Member

Yep, this seems reasonable. Everything in there is a container, there's no weird recursive types or anything.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 01edfec; successfully ran local tests

@apoelstra apoelstra merged commit ac0f1a8 into rust-bitcoin:master Dec 21, 2025
14 checks passed
@ValuedMammal ValuedMammal deleted the feat/assets_clone branch December 21, 2025 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants