Permalink
Browse files

Update for language changes.

  • Loading branch information...
1 parent b195738 commit cbb84866b91aaff3fcd1dc774f61f76c4a7c3b0b @jdm jdm committed Dec 23, 2012
Showing with 6 additions and 6 deletions.
  1. +1 −1 connection.rs
  2. +5 −5 http_client.rc
View
@@ -1,4 +1,4 @@
-use comm::Port;
+use oldcomm::Port;
use std::net::tcp::{TcpErrData, TcpConnectErrData};
use std::net::ip::IpAddr;
View
@@ -19,7 +19,7 @@ pub mod http_parser;
pub mod request;
use ptr::to_unsafe_ptr;
-use comm::{Port, Chan};
+use oldcomm::{Port, Chan};
use result::{Result, Ok, Err};
use std::net::ip::{
get_addr, format_addr,
@@ -80,9 +80,9 @@ impl RequestError: cmp::Eq {
impl RequestEvent: cmp::Eq {
pure fn eq(&self, other: &RequestEvent) -> bool {
match (self, other) {
- (&Status(a), &Status(b)) => a == b,
- (&Payload(a), &Payload(b)) => a == b,
- (&Error(a), &Error(b)) => a == b,
+ (&Status(ref a), &Status(ref b)) => a == b,
+ (&Payload(ref a), &Payload(ref b)) => a == b,
+ (&Error(ref a), &Error(ref b)) => a == b,
(&Status(*), _)
| (&Payload(*), _)
@@ -233,7 +233,7 @@ impl<C: Connection, CF: ConnectionFactory<C>> HttpRequest<C, CF> {
if ip_addrs.is_not_empty() {
// FIXME: Which address should we really pick?
let best_ip = do ip_addrs.find |ip| {
- match ip {
+ match *ip {
Ipv4(*) => { true }
Ipv6(*) => { false }
}

0 comments on commit cbb8486

Please sign in to comment.