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: add const try_from_str constructor to DnsName type. #68

Closed
wants to merge 1 commit into from

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.

src/server_name.rs Outdated Show resolved Hide resolved
src/server_name.rs Outdated Show resolved Hide resolved
@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