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

feat(metadata): Implement AsRef and AsMut traits for MetadataMap #2161

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

hr567
Copy link
Contributor

@hr567 hr567 commented Jan 24, 2025

Signed-off-by: hr567 [email protected]

Motivation

Avoid taking ownership or clone when a HeaderMap reference is needed by adding an AsRef trait.

Solution

Add AsRef and AsMut implement

@tottoto tottoto changed the title Master feat(metadata): Implement AsRef and AsMut traits for MetadataMap Jan 24, 2025
@tottoto tottoto enabled auto-merge January 24, 2025 23:08
@tottoto tottoto added this pull request to the merge queue Jan 24, 2025
Merged via the queue into hyperium:master with commit 86815d8 Jan 24, 2025
18 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.

2 participants