-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Implement TryFrom for Destination #1808
Comments
I'd like to give this a shot. I think I have the implementation working, but I don't know a lot about |
Similar to how it's currently checking for Rust 1.30, and if found, printing When doing so, it'd be best to only call |
Add TryFrom<Uri> impl for Destination, for compiler version >= 1.34. Add basic unit tests for TryFrom impl Ref Issue: Implement TryFrom for Destination hyperium#1808
Add #[cfg(try_from)] to TryFrom import. Ref Issue; hyperium#1808
Change TryFrom<Uri> for Destination to use Destination's internal try_from_uri method. Ref Issue: hyperium#1808
With
TryFrom
now stable, we can provide aTryFrom<Uri>
forDestination
. To prevent requiring the new Rust compiler, this can include a#[cfg]
attribute that is set in thebuild.rs
.The text was updated successfully, but these errors were encountered: