update deprecated Uri::port to port_part

This commit is contained in:
Sean McArthur
2018-11-26 12:14:05 -08:00
parent 459de48093
commit e2fa5497ef
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ impl Connect for Connector {
ndst.set_host(puri.host().expect("proxy target should have host"))
.expect("proxy target host should be valid");
ndst.set_port(puri.port());
ndst.set_port(puri.port_part().map(|p| p.as_u16()));
#[cfg(feature = "default-tls")]
{