Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Byref in udl instead of Arc in Rust code when possible #434

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

thunderbiscuit
Copy link
Member

@thunderbiscuit thunderbiscuit commented Dec 14, 2023

This PR refactors the codebase to use the [ByRef] declaration in the udl file instead of Arcs in the Rust code where arguments are passed that can be borrowed values.

Closes #433

All tests pass locally, including the Rust tests which required a bit of fixing.

@thunderbiscuit thunderbiscuit marked this pull request as ready for review December 14, 2023 18:41
@thunderbiscuit thunderbiscuit changed the base branch from master to release/alpha.2-rc1 December 14, 2023 23:30
@thunderbiscuit thunderbiscuit changed the base branch from release/alpha.2-rc1 to master December 14, 2023 23:30
@reez
Copy link
Collaborator

reez commented Dec 15, 2023

ACK bcb77c4

Seeing no Arc in the UDL 👍, this is a good change thanks!

@thunderbiscuit thunderbiscuit merged commit bcb77c4 into bitcoindevkit:master Dec 15, 2023
17 checks passed
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.

Migrate our use of Arc<T> to [ByRef] for method parameters
2 participants