Skip to content

Replace TryParseIp trait with IntoName::to_ip()#2509

Merged
djc merged 1 commit intomainfrom
as-ip
Oct 19, 2024
Merged

Replace TryParseIp trait with IntoName::to_ip()#2509
djc merged 1 commit intomainfrom
as-ip

Conversation

@djc
Copy link
Member

@djc djc commented Oct 15, 2024

I randomly bumped into the TryParseIp trait which seems like unnecessary complexity. It is always used in conjunction with IntoName so adding it as a method on that trait seemed like a simpler way to do things.

@djc djc changed the title Replace TryParseIp trait with IntoName::as_ip() Replace TryParseIp trait with IntoName::to_ip() Oct 15, 2024
Copy link
Member

@bluejekyll bluejekyll left a comment

Choose a reason for hiding this comment

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

This seems reasonable and definitely cleans up some unnecessary indirection. Thank you!

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