Skip to content

feat: add const try_from_str constructor to DnsName type.#68

Closed
DSharifi wants to merge 1 commit intorustls:mainfrom
DSharifi:main
Closed

feat: add const try_from_str constructor to DnsName type.#68
DSharifi wants to merge 1 commit intorustls:mainfrom
DSharifi:main

Conversation

@DSharifi
Copy link
Contributor

Add a const DnsName::from_str method to create DnsName in a const setting.

validate() is refactored to use while loop instead of for loop as for loops are non const.

Copy link
Member

@cpu cpu left a comment

Choose a reason for hiding this comment

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

Thanks 👍 Seems reasonable to me!

Would you mind writing a commit message? It could be as simple as the PR description.

@DSharifi
Copy link
Contributor Author

DSharifi commented Jan 24, 2025

Thanks for the quick review!

I amended the commit message now to the PR title.

@djc
Copy link
Member

djc commented Jan 24, 2025

Please squash all your changes into a single commit.

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.

3 participants