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

Replace Ipv{4,6}Network::new_unchecked with Ipv{4,6}Network::new_checked #203

Merged
merged 5 commits into from
Jan 6, 2025

Conversation

MarkusPettersson98
Copy link
Contributor

@MarkusPettersson98 MarkusPettersson98 commented Jan 3, 2025

This PR implements one of the implementations proposed in #202. It replaces the unsafe Ipv4Network::new_unchecked and Ipv6Network::new_unchecked functions with safe, checked versions without losing the original utility in const contexts if the consumer has an MSRV of 1.83.

@achanda
Copy link
Owner

achanda commented Jan 6, 2025

Looks great, thanks!

@achanda achanda merged commit 4f7d898 into achanda:master Jan 6, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Jan 6, 2025
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