Skip to content
This repository was archived by the owner on Oct 22, 2026. It is now read-only.

[plan] Derive Clone for Assets - #886

Merged
apoelstra merged 1 commit into
rust-bitcoin:masterfrom
ValuedMammal:feat/assets_clone
Dec 21, 2025
Merged

apoelstra merged 1 commit into
rust-bitcoin:masterfrom
ValuedMammal:feat/assets_clone

Conversation

@ValuedMammal

Copy link
Copy Markdown
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
Copy Markdown
Member

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

@apoelstra apoelstra left a comment

Copy link
Copy Markdown
Member

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
@ValuedMammal
ValuedMammal deleted the feat/assets_clone branch December 21, 2025 20:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants