port all optional features to 2018-edition
This commit is contained in:
committed by
Sean McArthur
parent
4773408ae4
commit
3ba4b6eadf
@@ -38,7 +38,7 @@ impl<'a> PolyfillTryInto for &'a String {
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn expect_uri(url: &Url) -> ::hyper::Uri {
|
||||
pub(crate) fn expect_uri(url: &Url) -> hyper::Uri {
|
||||
url.as_str().parse().expect("a parsed Url should always be a valid Uri")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user