fix(rustup): adapt to current rustc

Closes #381.
This commit is contained in:
Adrian Heine
2015-03-19 09:17:15 +01:00
parent 7469e62d1e
commit 1f0bc951c9
7 changed files with 14 additions and 16 deletions

View File

@@ -215,8 +215,8 @@ impl NetworkListener for HttpListener {
#[inline]
fn socket_addr(&mut self) -> io::Result<SocketAddr> {
match *self {
HttpListener::Http(ref mut tcp) => tcp.socket_addr(),
HttpListener::Https(ref mut tcp, _) => tcp.socket_addr(),
HttpListener::Http(ref mut tcp) => tcp.local_addr(),
HttpListener::Https(ref mut tcp, _) => tcp.local_addr(),
}
}
}