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

refactor(client) use Box<str> in ..::dns::Name #2727

Merged
merged 1 commit into from
Dec 29, 2021
Merged

refactor(client) use Box<str> in ..::dns::Name #2727

merged 1 commit into from
Dec 29, 2021

Conversation

monoid
Copy link
Contributor

@monoid monoid commented Dec 28, 2021

Use Box in hyper::client::connect::dns::Name, so
its size is 16 bytes, not 24 bytes. As Name never
change its contents, read-only Box is perfectly OK.

Use Box<str> in hyper::client::connect::dns::Name, so
its size is 16 bytes, not 24 bytes.  As Name never
change its contents, read-only Box<str> is perfectly OK.
Copy link
Member

@seanmonstar seanmonstar left a comment

Choose a reason for hiding this comment

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

Thanks!

@seanmonstar seanmonstar merged commit f1b89c1 into hyperium:master Dec 29, 2021
@monoid monoid deleted the lean-name branch December 29, 2021 16:40
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.

None yet

2 participants