Skip to content

Add conversion from Address ref to MuxedAddress#1478

Merged
dmkozh merged 2 commits intomainfrom
muxed-address-convert-impl
Jun 23, 2025
Merged

Add conversion from Address ref to MuxedAddress#1478
dmkozh merged 2 commits intomainfrom
muxed-address-convert-impl

Conversation

@leighmcculloch
Copy link
Copy Markdown
Member

@leighmcculloch leighmcculloch commented Jun 21, 2025

What

Add implementation of From<&Address> trait for MuxedAddress to allow converting from Address references.

Why

Avoid unnecessary cloning when converting from Address references to MuxedAddress. When creating a MuxedAddress from an Address an &Address is only needed anyway.

@leighmcculloch leighmcculloch requested a review from dmkozh June 21, 2025 15:00
@leighmcculloch leighmcculloch force-pushed the muxed-address-convert-impl branch from aead522 to 5991077 Compare June 21, 2025 15:02
@leighmcculloch leighmcculloch marked this pull request as ready for review June 21, 2025 15:02
@leighmcculloch leighmcculloch requested review from a team and removed request for dmkozh June 21, 2025 15:02
@dmkozh dmkozh enabled auto-merge June 23, 2025 16:21
@dmkozh dmkozh added this pull request to the merge queue Jun 23, 2025
Merged via the queue into main with commit 9653830 Jun 23, 2025
18 checks passed
@dmkozh dmkozh deleted the muxed-address-convert-impl branch June 23, 2025 16:57
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