Skip to content

Commit 3865b3e

Browse files
committed
Update to master
1 parent 8146ab3 commit 3865b3e

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
2-
1+
/Cargo.lock
32
/target/

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
name = "curl"
44
version = "0.0.1"
55
authors = ["Carl Lerche <[email protected]>"]
6+
7+
[dependencies.url]
8+
git = "https://github.com/servo/rust-url"

src/test/server.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
use std::str;
1+
use std::collections::HashSet;
22
use std::io::net::ip::Port;
33
use std::io::net::tcp::{TcpListener,TcpStream};
4-
use std::io::{Acceptor, Listener};
54
use std::io::timer;
6-
use std::collections::HashSet;
5+
use std::io::{Acceptor, Listener};
6+
use std::str;
7+
use std::time::Duration;
78

89
// Global handle to the running test HTTP server
910
local_data_key!(handle: Handle)
@@ -115,7 +116,7 @@ impl OpSequence {
115116
to_debug_str(b.as_slice()), to_debug_str(act.as_slice())));
116117
}
117118
}
118-
&Wait(ms) => { timer::sleep(ms as u64) }
119+
&Wait(ms) => { timer::sleep(Duration::milliseconds(ms as i32)) }
119120
&Shutdown => return Err("Shutdown must be sent on its own".to_string())
120121
}
121122
}

0 commit comments

Comments
 (0)