-
Notifications
You must be signed in to change notification settings - Fork 335
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
feature: impl TryFrom<&str> for Url #568
Comments
Or add a feature to enable this (and possibly other features that require a more recent version of rust) |
Ah since #566 landed the minimum supported Rust version is now 1.36, which means the flag would no longer serve any purpose. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Having
impl TryFrom<&str> for Url
would be fantastic because it would allow passing bothUrl
and&str
to the same API through animpl TryInto<Url>
bound.Example
Caveats
The only caveat here is that
TryFrom
andTryInto
were stabilized in Rust 1.34, and the minimum guaranteed Rust version forurl
is 1.33, which means this would likely would require a major version bump.Thanks!
The text was updated successfully, but these errors were encountered: